| /dflybsd-src/test/testcases/crypto/twofish/ |
| H A D | twofish_test.c | 222 u_char *plaintext, u_char *ciphertext, u_int textlen) in do_tests() argument 231 print_hex(ciphertext, textlen); in do_tests() 237 } else if (!match(result, ciphertext, textlen)) { in do_tests() 244 if (syscrypt(key, keylen, ciphertext, result, textlen, 0) < 0) { in do_tests() 263 u_char *key, *plaintext, *ciphertext; in run_file() local 271 key = ciphertext = plaintext = NULL; in run_file() 295 if (plaintext != NULL && ciphertext != NULL && in run_file() 298 plaintext, ciphertext, textlen); in run_file() 326 if (ciphertext != NULL) in run_file() 327 free(ciphertext); in run_file() [all …]
|
| /dflybsd-src/test/testcases/crypto/serpent/ |
| H A D | serpent_test.c | 222 u_char *plaintext, u_char *ciphertext, u_int textlen) in do_tests() argument 231 print_hex(ciphertext, textlen); in do_tests() 237 } else if (!match(result, ciphertext, textlen)) { in do_tests() 244 if (syscrypt(key, keylen, ciphertext, result, textlen, 0) < 0) { in do_tests() 263 u_char *key, *plaintext, *ciphertext; in run_file() local 271 key = ciphertext = plaintext = NULL; in run_file() 295 if (plaintext != NULL && ciphertext != NULL && in run_file() 298 plaintext, ciphertext, textlen); in run_file() 326 if (ciphertext != NULL) in run_file() 327 free(ciphertext); in run_file() [all …]
|
| /dflybsd-src/crypto/openssh/ |
| H A D | kexsntrup761x25519.c | 80 u_char *kem_key, *ciphertext, *server_pub; in kex_kem_sntrup761x25519_enc() local 118 if ((r = sshbuf_reserve(server_blob, need, &ciphertext)) != 0) in kex_kem_sntrup761x25519_enc() 121 crypto_kem_sntrup761_enc(ciphertext, kem_key, client_pub); in kex_kem_sntrup761x25519_enc() 123 server_pub = ciphertext + crypto_kem_sntrup761_CIPHERTEXTBYTES; in kex_kem_sntrup761x25519_enc() 133 dump_digest("server cipher text:", ciphertext, in kex_kem_sntrup761x25519_enc() 165 const u_char *ciphertext, *server_pub; in kex_kem_sntrup761x25519_dec() local 177 ciphertext = sshbuf_ptr(server_blob); in kex_kem_sntrup761x25519_dec() 178 server_pub = ciphertext + crypto_kem_sntrup761_CIPHERTEXTBYTES; in kex_kem_sntrup761x25519_dec() 180 dump_digest("server cipher text:", ciphertext, in kex_kem_sntrup761x25519_dec() 192 decoded = crypto_kem_sntrup761_dec(kem_key, ciphertext, in kex_kem_sntrup761x25519_dec()
|
| H A D | PROTOCOL.chacha20poly1305 | 66 bytes of ciphertext length have been received, they may be decrypted 74 ciphertext of the packet length and the payload together. The calculated
|
| H A D | PROTOCOL | 59 calculating the MAC over the packet ciphertext rather than the 61 protocol, where decryption of unauthenticated ciphertext provided a 66 to calculate the MAC over the packet ciphertext and to send the packet
|
| /dflybsd-src/test/testcases/crypto/aes/ |
| H A D | aestest.c | 215 u_char *plaintext, u_char *ciphertext, u_int textlen) in do_tests() argument 224 } else if (!match(result, ciphertext, textlen)) { in do_tests() 230 if (syscrypt(key, keylen, ciphertext, result, textlen, 0) < 0) { in do_tests() 248 u_char *key, *plaintext, *ciphertext; in run_file() local 256 key = ciphertext = plaintext = NULL; in run_file() 299 if (ciphertext != NULL) in run_file() 300 free(ciphertext); in run_file() 301 parsehex(cp, &ciphertext, &tmp); in run_file() 320 if (plaintext == NULL || ciphertext == NULL || in run_file() 329 plaintext, ciphertext, textlen); in run_file()
|
| /dflybsd-src/crypto/libressl/crypto/camellia/ |
| H A D | cmll_locl.h | 79 const KEY_TABLE_TYPE keyTable, u8 ciphertext[]); 80 void Camellia_DecryptBlock_Rounds(int grandRounds, const u8 ciphertext[], 83 const KEY_TABLE_TYPE keyTable, u8 ciphertext[]); 84 void Camellia_DecryptBlock(int keyBitLength, const u8 ciphertext[],
|
| H A D | camellia.c | 466 const KEY_TABLE_TYPE keyTable, u8 ciphertext[]) in Camellia_EncryptBlock_Rounds() argument 502 PUTU32(ciphertext, s2); in Camellia_EncryptBlock_Rounds() 503 PUTU32(ciphertext + 4, s3); in Camellia_EncryptBlock_Rounds() 504 PUTU32(ciphertext + 8, s0); in Camellia_EncryptBlock_Rounds() 505 PUTU32(ciphertext + 12, s1); in Camellia_EncryptBlock_Rounds() 510 const KEY_TABLE_TYPE keyTable, u8 ciphertext[]) in Camellia_EncryptBlock() argument 513 plaintext, keyTable, ciphertext); in Camellia_EncryptBlock() 517 Camellia_DecryptBlock_Rounds(int grandRounds, const u8 ciphertext[], in Camellia_DecryptBlock_Rounds() argument 523 s0 = GETU32(ciphertext) ^ k[0]; in Camellia_DecryptBlock_Rounds() 524 s1 = GETU32(ciphertext+4) ^ k[1]; in Camellia_DecryptBlock_Rounds() [all …]
|
| /dflybsd-src/lib/libcrypt/ |
| H A D | crypt-blowfish.c | 186 u_int8_t ciphertext[4 * BCRYPT_BLOCKS] = "OrpheanBeholderScryDoubt"; in crypt_blowfish() local 258 cdata[i] = Blowfish_stream2word(ciphertext, 4 * BCRYPT_BLOCKS, &j); in crypt_blowfish() 265 ciphertext[4 * i + 3] = cdata[i] & 0xff; in crypt_blowfish() 267 ciphertext[4 * i + 2] = cdata[i] & 0xff; in crypt_blowfish() 269 ciphertext[4 * i + 1] = cdata[i] & 0xff; in crypt_blowfish() 271 ciphertext[4 * i + 0] = cdata[i] & 0xff; in crypt_blowfish() 285 encode_base64((u_int8_t *) encrypted + strlen(encrypted), ciphertext, in crypt_blowfish()
|
| /dflybsd-src/lib/libssh/openbsd-compat/ |
| H A D | bcrypt_pbkdf.c | 76 uint8_t ciphertext[BCRYPT_HASHSIZE] = in bcrypt_hash() local 94 cdata[i] = Blowfish_stream2word(ciphertext, sizeof(ciphertext), in bcrypt_hash() 108 explicit_bzero(ciphertext, sizeof(ciphertext)); in bcrypt_hash()
|
| /dflybsd-src/tools/tools/crypto/ |
| H A D | cryptotest.c | 250 char *cleartext, *ciphertext, *originaltext; in runtest() local 297 ciphertext = cleartext+size; in runtest() 324 cop.dst = ciphertext; in runtest() 331 if (verify && bcmp(ciphertext, cleartext, size) == 0) { in runtest() 333 hexdump(ciphertext, size); in runtest() 341 cop.src = ciphertext; in runtest() 365 cop.mac = ciphertext; in runtest()
|
| /dflybsd-src/test/testcases/crypto/aesxts/ |
| H A D | aes_xts.c | 145 u_int8_t ciphertext[512]; member 1824 if (!match(result, tv->ciphertext, tv->text_len)) { in main() 1831 if (syscrypt(tv->key, tv->key_len, tv->seqno, tv->ciphertext, in main()
|
| /dflybsd-src/sys/crypto/camellia/ |
| H A D | camellia.c | 1274 unsigned char *ciphertext) in Camellia_EncryptBlock() argument 1296 PUTU32(ciphertext, tmp[0]); in Camellia_EncryptBlock() 1297 PUTU32(ciphertext+4, tmp[1]); in Camellia_EncryptBlock() 1298 PUTU32(ciphertext+8, tmp[2]); in Camellia_EncryptBlock() 1299 PUTU32(ciphertext+12, tmp[3]); in Camellia_EncryptBlock() 1304 const unsigned char *ciphertext, in Camellia_DecryptBlock() argument 1310 tmp[0] = GETU32(ciphertext); in Camellia_DecryptBlock() 1311 tmp[1] = GETU32(ciphertext + 4); in Camellia_DecryptBlock() 1312 tmp[2] = GETU32(ciphertext + 8); in Camellia_DecryptBlock() 1313 tmp[3] = GETU32(ciphertext + 12); in Camellia_DecryptBlock()
|
| /dflybsd-src/contrib/wpa_supplicant/src/crypto/ |
| H A D | crypto_module_tests.c | 423 char *ciphertext; in test_ecb() member 482 hexstr2bin(tv->ciphertext, cipher, sizeof(cipher))) { in test_ecb()
|