/dports/security/dropbear/dropbear-2020.81/libtomcrypt/src/modes/lrw/ |
H A D | lrw_process.c | 27 …rocess(const unsigned char *pt, unsigned char *ct, unsigned long len, int mode, symmetric_LRW *lrw) in lrw_process() argument 37 LTC_ARGCHK(lrw != NULL); in lrw_process() 45 XMEMCPY(prod, lrw->pad, 16); in lrw_process() 49 lrw->IV[x] = (lrw->IV[x] + 1) & 255; in lrw_process() 50 if (lrw->IV[x]) { in lrw_process() 61 …FAST_TYPE_PTR_CAST(lrw->pad + y)) ^= *(LTC_FAST_TYPE_PTR_CAST(&lrw->PC[x][lrw->IV[x]][y])) ^ *(LTC… in lrw_process() 65 lrw->pad[y] ^= lrw->PC[x][lrw->IV[x]][y] ^ lrw->PC[x][(lrw->IV[x]-1)&255][y]; in lrw_process() 70 gcm_gf_mult(lrw->tweak, lrw->IV, lrw->pad); in lrw_process() 86 if ((err = cipher_descriptor[lrw->cipher].ecb_encrypt(ct, ct, &lrw->key)) != CRYPT_OK) { in lrw_process() 90 if ((err = cipher_descriptor[lrw->cipher].ecb_decrypt(ct, ct, &lrw->key)) != CRYPT_OK) { in lrw_process()
|
H A D | lrw_test.c | 71 symmetric_LRW lrw; in lrw_test() 90 lrw_done(&lrw); in lrw_test() 95 if ((err = lrw_encrypt(tests[x].P, buf[0], 16, &lrw)) != CRYPT_OK) { in lrw_test() 96 lrw_done(&lrw); in lrw_test() 101 lrw_done(&lrw); in lrw_test() 106 if ((err = lrw_setiv(tests[x].IV, 16, &lrw)) != CRYPT_OK) { in lrw_test() 107 lrw_done(&lrw); in lrw_test() 111 if ((err = lrw_decrypt(buf[0], buf[1], 16, &lrw)) != CRYPT_OK) { in lrw_test() 112 lrw_done(&lrw); in lrw_test() 117 lrw_done(&lrw); in lrw_test() [all …]
|
H A D | lrw_setiv.c | 25 int lrw_setiv(const unsigned char *IV, unsigned long len, symmetric_LRW *lrw) in lrw_setiv() argument 33 LTC_ARGCHK(lrw != NULL); in lrw_setiv() 39 if ((err = cipher_is_valid(lrw->cipher)) != CRYPT_OK) { in lrw_setiv() 44 XMEMCPY(lrw->IV, IV, 16); in lrw_setiv() 47 …if (cipher_descriptor[lrw->cipher].accel_lrw_encrypt != NULL && cipher_descriptor[lrw->cipher].acc… in lrw_setiv() 53 XMEMCPY(T, &lrw->PC[0][IV[0]][0], 16); in lrw_setiv() 57 *(LTC_FAST_TYPE_PTR_CAST(T + y)) ^= *(LTC_FAST_TYPE_PTR_CAST(&lrw->PC[x][IV[x]][y])); in lrw_setiv() 61 T[y] ^= lrw->PC[x][IV[x]][y]; in lrw_setiv() 65 XMEMCPY(lrw->pad, T, 16); in lrw_setiv() 67 gcm_gf_mult(lrw->tweak, IV, lrw->pad); in lrw_setiv()
|
H A D | lrw_start.c | 34 symmetric_LRW *lrw) in lrw_start() argument 45 LTC_ARGCHK(lrw != NULL); in lrw_start() 62 if ((err = cipher_descriptor[cipher].setup(key, keylen, num_rounds, &lrw->key)) != CRYPT_OK) { in lrw_start() 65 lrw->cipher = cipher; in lrw_start() 68 XMEMCPY(lrw->tweak, tweak, 16); in lrw_start() 76 gcm_gf_mult(tweak, B, &lrw->PC[0][y][0]); in lrw_start() 83 t = lrw->PC[x-1][y][15]; in lrw_start() 85 lrw->PC[x][y][z] = lrw->PC[x-1][y][z-1]; in lrw_start() 87 lrw->PC[x][y][0] = gcm_shift_table[t<<1]; in lrw_start() 88 lrw->PC[x][y][1] ^= gcm_shift_table[(t<<1)+1]; in lrw_start() [all …]
|
H A D | lrw_decrypt.c | 25 int lrw_decrypt(const unsigned char *ct, unsigned char *pt, unsigned long len, symmetric_LRW *lrw) in lrw_decrypt() argument 31 LTC_ARGCHK(lrw != NULL); in lrw_decrypt() 33 if ((err = cipher_is_valid(lrw->cipher)) != CRYPT_OK) { in lrw_decrypt() 37 if (cipher_descriptor[lrw->cipher].accel_lrw_decrypt != NULL) { in lrw_decrypt() 38 …return cipher_descriptor[lrw->cipher].accel_lrw_decrypt(ct, pt, len, lrw->IV, lrw->tweak, &lrw->ke… in lrw_decrypt() 41 return lrw_process(ct, pt, len, LRW_DECRYPT, lrw); in lrw_decrypt()
|
H A D | lrw_encrypt.c | 25 int lrw_encrypt(const unsigned char *pt, unsigned char *ct, unsigned long len, symmetric_LRW *lrw) in lrw_encrypt() argument 31 LTC_ARGCHK(lrw != NULL); in lrw_encrypt() 33 if ((err = cipher_is_valid(lrw->cipher)) != CRYPT_OK) { in lrw_encrypt() 37 if (cipher_descriptor[lrw->cipher].accel_lrw_encrypt != NULL) { in lrw_encrypt() 38 …return cipher_descriptor[lrw->cipher].accel_lrw_encrypt(pt, ct, len, lrw->IV, lrw->tweak, &lrw->ke… in lrw_encrypt() 41 return lrw_process(pt, ct, len, LRW_ENCRYPT, lrw); in lrw_encrypt()
|
/dports/security/libtomcrypt/libtomcrypt-1.18.2/src/modes/lrw/ |
H A D | lrw_process.c | 27 …rocess(const unsigned char *pt, unsigned char *ct, unsigned long len, int mode, symmetric_LRW *lrw) in lrw_process() argument 37 LTC_ARGCHK(lrw != NULL); in lrw_process() 45 XMEMCPY(prod, lrw->pad, 16); in lrw_process() 49 lrw->IV[x] = (lrw->IV[x] + 1) & 255; in lrw_process() 50 if (lrw->IV[x]) { in lrw_process() 61 …FAST_TYPE_PTR_CAST(lrw->pad + y)) ^= *(LTC_FAST_TYPE_PTR_CAST(&lrw->PC[x][lrw->IV[x]][y])) ^ *(LTC… in lrw_process() 65 lrw->pad[y] ^= lrw->PC[x][lrw->IV[x]][y] ^ lrw->PC[x][(lrw->IV[x]-1)&255][y]; in lrw_process() 70 gcm_gf_mult(lrw->tweak, lrw->IV, lrw->pad); in lrw_process() 86 if ((err = cipher_descriptor[lrw->cipher].ecb_encrypt(ct, ct, &lrw->key)) != CRYPT_OK) { in lrw_process() 90 if ((err = cipher_descriptor[lrw->cipher].ecb_decrypt(ct, ct, &lrw->key)) != CRYPT_OK) { in lrw_process()
|
H A D | lrw_test.c | 71 symmetric_LRW lrw; in lrw_test() 90 lrw_done(&lrw); in lrw_test() 95 if ((err = lrw_encrypt(tests[x].P, buf[0], 16, &lrw)) != CRYPT_OK) { in lrw_test() 96 lrw_done(&lrw); in lrw_test() 101 lrw_done(&lrw); in lrw_test() 106 if ((err = lrw_setiv(tests[x].IV, 16, &lrw)) != CRYPT_OK) { in lrw_test() 107 lrw_done(&lrw); in lrw_test() 111 if ((err = lrw_decrypt(buf[0], buf[1], 16, &lrw)) != CRYPT_OK) { in lrw_test() 112 lrw_done(&lrw); in lrw_test() 117 lrw_done(&lrw); in lrw_test() [all …]
|
H A D | lrw_setiv.c | 25 int lrw_setiv(const unsigned char *IV, unsigned long len, symmetric_LRW *lrw) in lrw_setiv() argument 33 LTC_ARGCHK(lrw != NULL); in lrw_setiv() 39 if ((err = cipher_is_valid(lrw->cipher)) != CRYPT_OK) { in lrw_setiv() 44 XMEMCPY(lrw->IV, IV, 16); in lrw_setiv() 47 …if (cipher_descriptor[lrw->cipher].accel_lrw_encrypt != NULL && cipher_descriptor[lrw->cipher].acc… in lrw_setiv() 53 XMEMCPY(T, &lrw->PC[0][IV[0]][0], 16); in lrw_setiv() 57 *(LTC_FAST_TYPE_PTR_CAST(T + y)) ^= *(LTC_FAST_TYPE_PTR_CAST(&lrw->PC[x][IV[x]][y])); in lrw_setiv() 61 T[y] ^= lrw->PC[x][IV[x]][y]; in lrw_setiv() 65 XMEMCPY(lrw->pad, T, 16); in lrw_setiv() 67 gcm_gf_mult(lrw->tweak, IV, lrw->pad); in lrw_setiv()
|
H A D | lrw_start.c | 34 symmetric_LRW *lrw) in lrw_start() argument 45 LTC_ARGCHK(lrw != NULL); in lrw_start() 62 if ((err = cipher_descriptor[cipher].setup(key, keylen, num_rounds, &lrw->key)) != CRYPT_OK) { in lrw_start() 65 lrw->cipher = cipher; in lrw_start() 68 XMEMCPY(lrw->tweak, tweak, 16); in lrw_start() 76 gcm_gf_mult(tweak, B, &lrw->PC[0][y][0]); in lrw_start() 83 t = lrw->PC[x-1][y][15]; in lrw_start() 85 lrw->PC[x][y][z] = lrw->PC[x-1][y][z-1]; in lrw_start() 87 lrw->PC[x][y][0] = gcm_shift_table[t<<1]; in lrw_start() 88 lrw->PC[x][y][1] ^= gcm_shift_table[(t<<1)+1]; in lrw_start() [all …]
|
H A D | lrw_encrypt.c | 25 int lrw_encrypt(const unsigned char *pt, unsigned char *ct, unsigned long len, symmetric_LRW *lrw) in lrw_encrypt() argument 31 LTC_ARGCHK(lrw != NULL); in lrw_encrypt() 33 if ((err = cipher_is_valid(lrw->cipher)) != CRYPT_OK) { in lrw_encrypt() 37 if (cipher_descriptor[lrw->cipher].accel_lrw_encrypt != NULL) { in lrw_encrypt() 38 …return cipher_descriptor[lrw->cipher].accel_lrw_encrypt(pt, ct, len, lrw->IV, lrw->tweak, &lrw->ke… in lrw_encrypt() 41 return lrw_process(pt, ct, len, LRW_ENCRYPT, lrw); in lrw_encrypt()
|
H A D | lrw_decrypt.c | 25 int lrw_decrypt(const unsigned char *ct, unsigned char *pt, unsigned long len, symmetric_LRW *lrw) in lrw_decrypt() argument 31 LTC_ARGCHK(lrw != NULL); in lrw_decrypt() 33 if ((err = cipher_is_valid(lrw->cipher)) != CRYPT_OK) { in lrw_decrypt() 37 if (cipher_descriptor[lrw->cipher].accel_lrw_decrypt != NULL) { in lrw_decrypt() 38 …return cipher_descriptor[lrw->cipher].accel_lrw_decrypt(ct, pt, len, lrw->IV, lrw->tweak, &lrw->ke… in lrw_decrypt() 41 return lrw_process(ct, pt, len, LRW_DECRYPT, lrw); in lrw_decrypt()
|
/dports/lang/sagittarius-scheme/sagittarius-0.9.8/ext/crypto/libtomcrypt/src/modes/lrw/ |
H A D | lrw_process.c | 29 …rocess(const unsigned char *pt, unsigned char *ct, unsigned long len, int mode, symmetric_LRW *lrw) in lrw_process() argument 39 LTC_ARGCHK(lrw != NULL); in lrw_process() 47 XMEMCPY(prod, lrw->pad, 16); in lrw_process() 51 lrw->IV[x] = (lrw->IV[x] + 1) & 255; in lrw_process() 52 if (lrw->IV[x]) { in lrw_process() 63 …*((LTC_FAST_TYPE *)(lrw->pad + y)) ^= *((LTC_FAST_TYPE *)(&lrw->PC[x][lrw->IV[x]][y])) ^ *((LTC_FA… in lrw_process() 67 lrw->pad[y] ^= lrw->PC[x][lrw->IV[x]][y] ^ lrw->PC[x][(lrw->IV[x]-1)&255][y]; in lrw_process() 72 gcm_gf_mult(lrw->tweak, lrw->IV, lrw->pad); in lrw_process() 88 if ((err = cipher_descriptor[lrw->cipher].ecb_encrypt(ct, ct, &lrw->key)) != CRYPT_OK) { in lrw_process() 92 if ((err = cipher_descriptor[lrw->cipher].ecb_decrypt(ct, ct, &lrw->key)) != CRYPT_OK) { in lrw_process()
|
H A D | lrw_test.c | 73 symmetric_LRW lrw; in lrw_test() 91 if (XMEMCMP(tests[x].expected_tweak, lrw.pad, 16)) { in lrw_test() 92 lrw_done(&lrw); in lrw_test() 98 lrw_done(&lrw); in lrw_test() 103 lrw_done(&lrw); in lrw_test() 108 if ((err = lrw_setiv(tests[x].IV, 16, &lrw)) != CRYPT_OK) { in lrw_test() 109 lrw_done(&lrw); in lrw_test() 113 if ((err = lrw_decrypt(buf[0], buf[1], 16, &lrw)) != CRYPT_OK) { in lrw_test() 114 lrw_done(&lrw); in lrw_test() 119 lrw_done(&lrw); in lrw_test() [all …]
|
H A D | lrw_setiv.c | 27 int lrw_setiv(const unsigned char *IV, unsigned long len, symmetric_LRW *lrw) in lrw_setiv() argument 35 LTC_ARGCHK(lrw != NULL); in lrw_setiv() 41 if ((err = cipher_is_valid(lrw->cipher)) != CRYPT_OK) { in lrw_setiv() 46 XMEMCPY(lrw->IV, IV, 16); in lrw_setiv() 49 …if (cipher_descriptor[lrw->cipher].accel_lrw_encrypt != NULL && cipher_descriptor[lrw->cipher].acc… in lrw_setiv() 55 XMEMCPY(T, &lrw->PC[0][IV[0]][0], 16); in lrw_setiv() 59 *((LTC_FAST_TYPE *)(T + y)) ^= *((LTC_FAST_TYPE *)(&lrw->PC[x][IV[x]][y])); in lrw_setiv() 63 T[y] ^= lrw->PC[x][IV[x]][y]; in lrw_setiv() 67 XMEMCPY(lrw->pad, T, 16); in lrw_setiv() 69 gcm_gf_mult(lrw->tweak, IV, lrw->pad); in lrw_setiv()
|
H A D | lrw_start.c | 36 symmetric_LRW *lrw) in lrw_start() argument 47 LTC_ARGCHK(lrw != NULL); in lrw_start() 64 if ((err = cipher_descriptor[cipher].setup(key, keylen, num_rounds, &lrw->key)) != CRYPT_OK) { in lrw_start() 67 lrw->cipher = cipher; in lrw_start() 70 XMEMCPY(lrw->tweak, tweak, 16); in lrw_start() 78 gcm_gf_mult(tweak, B, &lrw->PC[0][y][0]); in lrw_start() 85 t = lrw->PC[x-1][y][15]; in lrw_start() 87 lrw->PC[x][y][z] = lrw->PC[x-1][y][z-1]; in lrw_start() 89 lrw->PC[x][y][0] = gcm_shift_table[t<<1]; in lrw_start() 90 lrw->PC[x][y][1] ^= gcm_shift_table[(t<<1)+1]; in lrw_start() [all …]
|
H A D | lrw_decrypt.c | 27 int lrw_decrypt(const unsigned char *ct, unsigned char *pt, unsigned long len, symmetric_LRW *lrw) in lrw_decrypt() argument 33 LTC_ARGCHK(lrw != NULL); in lrw_decrypt() 35 if ((err = cipher_is_valid(lrw->cipher)) != CRYPT_OK) { in lrw_decrypt() 39 if (cipher_descriptor[lrw->cipher].accel_lrw_decrypt != NULL) { in lrw_decrypt() 40 …return cipher_descriptor[lrw->cipher].accel_lrw_decrypt(ct, pt, len, lrw->IV, lrw->tweak, &lrw->ke… in lrw_decrypt() 43 return lrw_process(ct, pt, len, LRW_DECRYPT, lrw); in lrw_decrypt()
|
H A D | lrw_encrypt.c | 27 int lrw_encrypt(const unsigned char *pt, unsigned char *ct, unsigned long len, symmetric_LRW *lrw) in lrw_encrypt() argument 33 LTC_ARGCHK(lrw != NULL); in lrw_encrypt() 35 if ((err = cipher_is_valid(lrw->cipher)) != CRYPT_OK) { in lrw_encrypt() 39 if (cipher_descriptor[lrw->cipher].accel_lrw_encrypt != NULL) { in lrw_encrypt() 40 …return cipher_descriptor[lrw->cipher].accel_lrw_encrypt(pt, ct, len, lrw->IV, lrw->tweak, &lrw->ke… in lrw_encrypt() 43 return lrw_process(pt, ct, len, LRW_ENCRYPT, lrw); in lrw_encrypt()
|
/dports/devel/binutils/binutils-2.37/gas/testsuite/gas/csky/ |
H A D | v1_float.d | 9 \s*[0-9a-f]*:\s*744a\s*lrw\s*r4,\s*0xffe06002.* 11 \s*[0-9a-f]*:\s*744a\s*lrw\s*r4,\s*0xffe06402.* 13 \s*[0-9a-f]*:\s*744a\s*lrw\s*r4,\s*0xffec1002.* 15 \s*[0-9a-f]*:\s*744a\s*lrw\s*r4,\s*0xffec9002.* 17 \s*[0-9a-f]*:\s*744a\s*lrw\s*r4,\s*0xffed9002.* 19 \s*[0-9a-f]*:\s*744a\s*lrw\s*r4,\s*0xffee1002.* 21 \s*[0-9a-f]*:\s*744a\s*lrw\s*r4,\s*0xffed1002.* 23 \s*[0-9a-f]*:\s*744a\s*lrw\s*r4,\s*0xffee9002.* 25 \s*[0-9a-f]*:\s*744a\s*lrw\s*r4,\s*0xffef1002.* 27 \s*[0-9a-f]*:\s*744a\s*lrw\s*r4,\s*0xffef9002.* [all …]
|
/dports/devel/arm-elf-binutils/binutils-2.37/gas/testsuite/gas/csky/ |
H A D | v1_float.d | 9 \s*[0-9a-f]*:\s*744a\s*lrw\s*r4,\s*0xffe06002.* 11 \s*[0-9a-f]*:\s*744a\s*lrw\s*r4,\s*0xffe06402.* 13 \s*[0-9a-f]*:\s*744a\s*lrw\s*r4,\s*0xffec1002.* 15 \s*[0-9a-f]*:\s*744a\s*lrw\s*r4,\s*0xffec9002.* 17 \s*[0-9a-f]*:\s*744a\s*lrw\s*r4,\s*0xffed9002.* 19 \s*[0-9a-f]*:\s*744a\s*lrw\s*r4,\s*0xffee1002.* 21 \s*[0-9a-f]*:\s*744a\s*lrw\s*r4,\s*0xffed1002.* 23 \s*[0-9a-f]*:\s*744a\s*lrw\s*r4,\s*0xffee9002.* 25 \s*[0-9a-f]*:\s*744a\s*lrw\s*r4,\s*0xffef1002.* 27 \s*[0-9a-f]*:\s*744a\s*lrw\s*r4,\s*0xffef9002.* [all …]
|
/dports/devel/gnulibiberty/binutils-2.37/gas/testsuite/gas/csky/ |
H A D | v1_float.d | 9 \s*[0-9a-f]*:\s*744a\s*lrw\s*r4,\s*0xffe06002.* 11 \s*[0-9a-f]*:\s*744a\s*lrw\s*r4,\s*0xffe06402.* 13 \s*[0-9a-f]*:\s*744a\s*lrw\s*r4,\s*0xffec1002.* 15 \s*[0-9a-f]*:\s*744a\s*lrw\s*r4,\s*0xffec9002.* 17 \s*[0-9a-f]*:\s*744a\s*lrw\s*r4,\s*0xffed9002.* 19 \s*[0-9a-f]*:\s*744a\s*lrw\s*r4,\s*0xffee1002.* 21 \s*[0-9a-f]*:\s*744a\s*lrw\s*r4,\s*0xffed1002.* 23 \s*[0-9a-f]*:\s*744a\s*lrw\s*r4,\s*0xffee9002.* 25 \s*[0-9a-f]*:\s*744a\s*lrw\s*r4,\s*0xffef1002.* 27 \s*[0-9a-f]*:\s*744a\s*lrw\s*r4,\s*0xffef9002.* [all …]
|
/dports/lang/gcc6-aux/gcc-6-20180516/libgomp/testsuite/libgomp.oacc-fortran/ |
H A D | reduction-2.f90 | 216 lrw = .true. 231 lrw = lrw .and. (array(i) .ge. 5) 255 if (lrw .neqv. lvresult) call abort 264 lrw = .false. 279 lrw = lrw .or. (array(i) .ge. 5) 303 if (lrw .neqv. lvresult) call abort 312 lrw = .true. 327 lrw = lrw .eqv. (array(i) .ge. 5) 351 if (lrw .neqv. lvresult) call abort 360 lrw = .true. [all …]
|
H A D | reduction-3.f90 | 216 lrw = .true. 231 lrw = lrw .and. (array(i) .ge. 5) 255 if (lrw .neqv. lvresult) call abort 264 lrw = .false. 279 lrw = lrw .or. (array(i) .ge. 5) 303 if (lrw .neqv. lvresult) call abort 312 lrw = .true. 327 lrw = lrw .eqv. (array(i) .ge. 5) 351 if (lrw .neqv. lvresult) call abort 360 lrw = .true. [all …]
|
/dports/lang/gcc12-devel/gcc-12-20211205/libgomp/testsuite/libgomp.oacc-fortran/ |
H A D | reduction-2.f90 | 216 lrw = .true. 231 lrw = lrw .and. (array(i) .ge. 5) 255 if (lrw .neqv. lvresult) STOP 18 264 lrw = .false. 279 lrw = lrw .or. (array(i) .ge. 5) 303 if (lrw .neqv. lvresult) STOP 22 312 lrw = .true. 327 lrw = lrw .eqv. (array(i) .ge. 5) 351 if (lrw .neqv. lvresult) STOP 26 360 lrw = .true. [all …]
|
H A D | reduction-3.f90 | 216 lrw = .true. 231 lrw = lrw .and. (array(i) .ge. 5) 255 if (lrw .neqv. lvresult) STOP 18 264 lrw = .false. 279 lrw = lrw .or. (array(i) .ge. 5) 303 if (lrw .neqv. lvresult) STOP 22 312 lrw = .true. 327 lrw = lrw .eqv. (array(i) .ge. 5) 351 if (lrw .neqv. lvresult) STOP 26 360 lrw = .true. [all …]
|