1 write to m_Nb
mscorlib (1)
system\security\cryptography\rijndaelmanagedtransform.cs (1)
69
m_Nb
= blockSize / 32;
81 references to m_Nb
mscorlib (81)
system\security\cryptography\rijndaelmanagedtransform.cs (81)
72
int S1 =
m_Nb
> 6 ? 3 : 2;
73
int S2 =
m_Nb
> 6 ? 4 : 3;
76
int[] encryptindex1 = new int[
m_Nb
];
77
int[] encryptindex2 = new int[
m_Nb
];
78
int[] encryptindex3 = new int[
m_Nb
];
80
int[] decryptindex1 = new int[
m_Nb
];
81
int[] decryptindex2 = new int[
m_Nb
];
82
int[] decryptindex3 = new int[
m_Nb
];
84
for (int j=0; j <
m_Nb
; j++) {
85
encryptindex1[j] = (j + 1) %
m_Nb
;
86
encryptindex2[j] = (j + S1) %
m_Nb
;
87
encryptindex3[j] = (j + S2) %
m_Nb
;
88
decryptindex1[j] = (j -1 +
m_Nb
) %
m_Nb
;
89
decryptindex2[j] = (j -S1 +
m_Nb
) %
m_Nb
;
90
decryptindex3[j] = (j -S2 +
m_Nb
) %
m_Nb
;
93
m_encryptindex = new int[
m_Nb
* 3];
94
Array.Copy(encryptindex1, 0, m_encryptindex, 0,
m_Nb
);
95
Array.Copy(encryptindex2, 0, m_encryptindex,
m_Nb
,
m_Nb
);
96
Array.Copy(encryptindex3, 0, m_encryptindex,
m_Nb
* 2,
m_Nb
);
98
m_decryptindex = new int[
m_Nb
* 3];
99
Array.Copy(decryptindex1, 0, m_decryptindex, 0,
m_Nb
);
100
Array.Copy(decryptindex2, 0, m_decryptindex,
m_Nb
,
m_Nb
);
101
Array.Copy(decryptindex3, 0, m_decryptindex,
m_Nb
* 2,
m_Nb
);
125
if (rgbIV.Length / 4 !=
m_Nb
)
128
m_IV = new int[
m_Nb
];
130
for (int i = 0; i <
m_Nb
; ++i) {
146
m_lastBlockBuffer = new int[
m_Nb
];
154
m_shiftRegister = new byte[4*
m_Nb
];
155
Buffer.InternalBlockCopy(m_IV, 0, m_shiftRegister, 0, 4*
m_Nb
);
375
Buffer.InternalBlockCopy(m_IV, 0, m_shiftRegister, 0, 4*
m_Nb
);
469
int* work = stackalloc int[
m_Nb
];
470
int* temp = stackalloc int[
m_Nb
];
477
Contract.Assert(m_blockSizeBytes <=
m_Nb
* sizeof(int), "m_blockSizeBytes <= m_Nb * sizeof(int)");
482
Contract.Assert(m_blockSizeBytes <=
m_Nb
* sizeof(int), "m_blockSizeBytes <= m_Nb * sizeof(int)");
487
for (int i = 0; i <
m_Nb
; ++i) {
502
for (int i = 0; i <
m_Nb
; ++i) {
516
for (int i = 0; i <
m_Nb
; ++i) {
531
for (int i = 0; i <
m_Nb
; ++i) {
551
for (int i = 0; i <
m_Nb
; ++i) {
612
int* work = stackalloc int[
m_Nb
];
613
int* temp = stackalloc int[
m_Nb
];
621
for (int i = 0; i <
m_Nb
; ++i) {
631
for (int i = 0; i <
m_Nb
; ++i) {
648
for (int i = 0; i <
m_Nb
; ++i) {
673
for (int i = 0; i <
m_Nb
; ++i) {
686
for (int i = 0; i <
m_Nb
; ++i) {
767
for (int i = 0; i <
m_Nb
; ++i) {
772
int* _encryptKeyExpansion = &encryptKeyExpansion[
m_Nb
];
775
for (int i = 0; i <
m_Nb
; ++i) {
778
T[512 + ((work[_encryptindex[
m_Nb
]] >> 16) & 0xFF)] ^
779
T[768 + ((work[_encryptindex[
m_Nb
* 2]] >> 24) & 0xFF)] ^
785
for (int i = 0; i <
m_Nb
; ++i) {
791
for (int i = 0; i <
m_Nb
; ++i) {
794
TF[512 + ((work[_encryptindex[
m_Nb
]] >> 16) & 0xFF)] ^
795
TF[768 + ((work[_encryptindex[
m_Nb
* 2]] >> 24) & 0xFF)] ^
808
int keyIndex =
m_Nb
* m_Nr;
809
for (int i = 0; i <
m_Nb
; ++i) {
817
keyIndex -= 2 *
m_Nb
;
820
for (int i = 0; i <
m_Nb
; ++i) {
823
iT[512 + ((work[_decryptindex[
m_Nb
]] >> 16) & 0xFF)] ^
824
iT[768 + ((work[_decryptindex[
m_Nb
* 2]] >> 24) & 0xFF)] ^
830
for (int i = 0; i <
m_Nb
; ++i) {
838
for (int i = 0; i <
m_Nb
; ++i) {
841
iTF[512 + ((work[_decryptindex[
m_Nb
]] >> 16) & 0xFF)] ^
842
iTF[768 + ((work[_decryptindex[
m_Nb
* 2]] >> 24) & 0xFF)] ^
871
m_encryptKeyExpansion = new int[
m_Nb
* (m_Nr + 1)];
872
m_decryptKeyExpansion = new int[
m_Nb
* (m_Nr + 1)];
885
for (int i = m_Nk; i <
m_Nb
* (m_Nr + 1); ++i) {
896
for (int i = m_Nk; i <
m_Nb
* (m_Nr + 1); ++i) {
911
for (int i = 0; i <
m_Nb
; ++i) {
913
m_decryptKeyExpansion[
m_Nb
* m_Nr + i] = m_encryptKeyExpansion[
m_Nb
* m_Nr + i];
916
for (int i =
m_Nb
; i <
m_Nb
* m_Nr; ++i) {