Lines Matching refs:publicKey

47    pAssert(key != NULL && key->privateKey != NULL && key->publicKey != NULL);  in RsaPrivateExponent()
62 pAssert(key->publicKey->size <= MAX_RSA_KEY_BYTES); in RsaPrivateExponent()
63 if( BN_bin2bn(key->publicKey->buffer, key->publicKey->size, bnN) == NULL in RsaPrivateExponent()
104 fill = key->publicKey->size - BN_num_bytes(bnD); in RsaPrivateExponent()
109 key->privateKey->size = key->publicKey->size; in RsaPrivateExponent()
135 TPM2B *publicKey, // IN/OUT: an input if only one prime is in _cpri__TestKeyRSA() argument
152 pAssert(publicKey != NULL && prime1 != NULL); in _cpri__TestKeyRSA()
155 && publicKey->size <= MAX_RSA_KEY_BYTES); in _cpri__TestKeyRSA()
157 if(publicKey->size/2 != prime1->size) in _cpri__TestKeyRSA()
191 if(BN_num_bits(bnN) != (publicKey->size * 8)) in _cpri__TestKeyRSA()
196 BN_bn2bin(bnN, publicKey->buffer); in _cpri__TestKeyRSA()
201 BN_bin2bn(publicKey->buffer, publicKey->size, bnN); in _cpri__TestKeyRSA()
232 d->size = publicKey->size; in _cpri__TestKeyRSA()
269 key->publicKey->size, key->publicKey->buffer); in RSAEP()
302 key->publicKey->size == key->publicKey->size); in RSADP()
306 if(_math__uComp(key->publicKey->size, key->publicKey->buffer, in RSADP()
313 key->publicKey->size, key->publicKey->buffer); in RSADP()
930 if(*cOutSize < key->publicKey->size) in _cpri__EncryptRSA()
932 *cOutSize = key->publicKey->size; in _cpri__EncryptRSA()
1004 if(cInSize != key->publicKey->size) in _cpri__DecryptRSA()
1014 if(*dOutSize < key->publicKey->size) in _cpri__DecryptRSA()
1016 *dOutSize = key->publicKey->size; in _cpri__DecryptRSA()
1057 *sigOutSize = key->publicKey->size; in _cpri__SignRSA()
1114 if(sigInSize != key->publicKey->size) in _cpri__ValidateSignatureRSA()