Home
last modified time | relevance | path

Searched refs:DB (Results 1 – 7 of 7) sorted by relevance

/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/pkcs1/
A Dpkcs_1_oaep_encode.c32 unsigned char *DB, *seed, *mask; in pkcs_1_oaep_encode() local
59 DB = XMALLOC(modulus_len); in pkcs_1_oaep_encode()
63 if (DB != NULL) { in pkcs_1_oaep_encode()
64 XFREE(DB); in pkcs_1_oaep_encode()
84 if ((err = hash_memory(hash_idx, DB, 0, DB, &x)) != CRYPT_OK) { in pkcs_1_oaep_encode()
92 XMEMSET(DB+x, 0, y); in pkcs_1_oaep_encode()
96 DB[x++] = 0x01; in pkcs_1_oaep_encode()
99 XMEMCPY(DB+x, msg, msglen); in pkcs_1_oaep_encode()
115 DB[y] ^= mask[y]; in pkcs_1_oaep_encode()
148 zeromem(DB, modulus_len); in pkcs_1_oaep_encode()
[all …]
A Dpkcs_1_oaep_decode.c31 unsigned char *DB, *seed, *mask; in pkcs_1_oaep_decode() local
56 DB = XMALLOC(modulus_len); in pkcs_1_oaep_decode()
59 if (DB == NULL || mask == NULL || seed == NULL) { in pkcs_1_oaep_decode()
60 if (DB != NULL) { in pkcs_1_oaep_decode()
61 XFREE(DB); in pkcs_1_oaep_decode()
93 XMEMCPY(DB, msg + x, modulus_len - hLen - 1); in pkcs_1_oaep_decode()
113 DB[y] ^= mask[y]; in pkcs_1_oaep_decode()
132 if (XMEM_NEQ(seed, DB, hLen) != 0) { in pkcs_1_oaep_decode()
154 XMEMCPY(out, DB + x, modulus_len - hLen - 1 - x); in pkcs_1_oaep_decode()
163 zeromem(DB, modulus_len); in pkcs_1_oaep_decode()
[all …]
A Dpkcs_1_pss_encode.c31 unsigned char *DB, *mask, *salt, *hash; in pkcs_1_pss_encode() local
58 DB = XMALLOC(modulus_len); in pkcs_1_pss_encode()
63 if (DB != NULL) { in pkcs_1_pss_encode()
64 XFREE(DB); in pkcs_1_pss_encode()
91 zeromem(DB, 8); in pkcs_1_pss_encode()
109 DB[x++] = 0x01; in pkcs_1_pss_encode()
110 XMEMCPY(DB + x, salt, saltlen); in pkcs_1_pss_encode()
120 DB[y] ^= mask[y]; in pkcs_1_pss_encode()
132 XMEMCPY(out + y, DB, modulus_len - hLen - 1); in pkcs_1_pss_encode()
150 zeromem(DB, modulus_len); in pkcs_1_pss_encode()
[all …]
A Dpkcs_1_pss_decode.c30 unsigned char *DB, *mask, *salt, *hash; in pkcs_1_pss_decode() local
57 DB = XMALLOC(modulus_len); in pkcs_1_pss_decode()
62 if (DB != NULL) { in pkcs_1_pss_decode()
63 XFREE(DB); in pkcs_1_pss_decode()
85 XMEMCPY(DB, sig + x, modulus_len - hLen - 1); in pkcs_1_pss_decode()
105 DB[y] ^= mask[y]; in pkcs_1_pss_decode()
109 DB[0] &= 0xFF >> ((modulus_len<<3) - (modulus_bitlen)); in pkcs_1_pss_decode()
115 if (DB[x] != 0x00) { in pkcs_1_pss_decode()
122 if (DB[x++] != 0x01) { in pkcs_1_pss_decode()
153 zeromem(DB, modulus_len); in pkcs_1_pss_decode()
[all …]
/optee_os-3.20.0/core/drivers/crypto/caam/acipher/
A Dcaam_rsa.c706 struct caambuf DB = { }; in do_oaep_decoding() local
877 mod_op.n.length = DB.length; in do_oaep_decoding()
882 mod_op.result.data = DB.data; in do_oaep_decoding()
891 RSA_DUMPBUF("DB", DB.data, DB.length); in do_oaep_decoding()
938 caam_free_buf(&DB); in do_oaep_decoding()
956 struct caambuf DB = { }; in do_oaep_encoding() local
997 lHash.data = DB.data; in do_oaep_encoding()
1026 RSA_DUMPBUF("DB", DB.data, DB.length); in do_oaep_encoding()
1085 mod_op.a.data = DB.data; in do_oaep_encoding()
1086 mod_op.a.length = DB.length; in do_oaep_encoding()
[all …]
/optee_os-3.20.0/core/drivers/crypto/crypto_api/acipher/
A Drsassa.c324 struct drvcrypt_buf DB = { }; in emsa_pss_encode() local
428 DB.data = msg_db; in emsa_pss_encode()
429 DB.length = db_size; in emsa_pss_encode()
431 CRYPTO_DUMPBUF("DB", DB.data, DB.length); in emsa_pss_encode()
464 mod_op.a.data = DB.data; in emsa_pss_encode()
465 mod_op.a.length = DB.length; in emsa_pss_encode()
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Daes.c149 V(79,DE,DE,A7), V(E2,5E,5E,BC), V(1D,0B,0B,16), V(76,DB,DB,AD), \
150 V(3B,E0,E0,DB), V(56,32,32,64), V(4E,3A,3A,74), V(1E,0A,0A,14), \
151 V(DB,49,49,92), V(0A,06,06,0C), V(6C,24,24,48), V(E4,5C,5C,B8), \
264 V(BD,42,E8,B0), V(88,8B,89,07), V(38,5B,19,E7), V(DB,EE,C8,79), \
286 V(3B,99,AC,C8), V(A7,7D,18,10), V(6E,63,9C,E8), V(7B,BB,3B,DB), \
296 V(5A,1D,67,B3), V(52,D2,DB,92), V(33,56,10,E9), V(13,47,D6,6D), \
300 V(EA,CD,F7,53), V(5B,AA,FD,5F), V(14,6F,3D,DF), V(86,DB,44,78), \

Completed in 11 milliseconds