• Home
  • Raw
  • Download

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()
206 BN_bin2bn(publicKey->buffer, publicKey->size, bnN); in _cpri__TestKeyRSA()
237 d->size = publicKey->size; in _cpri__TestKeyRSA()
274 key->publicKey->size, key->publicKey->buffer); in RSAEP()
307 key->publicKey->size == key->publicKey->size); in RSADP()
311 if(_math__uComp(key->publicKey->size, key->publicKey->buffer, in RSADP()
318 key->publicKey->size, key->publicKey->buffer); in RSADP()
943 if(*cOutSize < key->publicKey->size) in _cpri__EncryptRSA()
945 *cOutSize = key->publicKey->size; in _cpri__EncryptRSA()
1017 if(cInSize != key->publicKey->size) in _cpri__DecryptRSA()
1027 if(*dOutSize < key->publicKey->size) in _cpri__DecryptRSA()
1029 *dOutSize = key->publicKey->size; in _cpri__DecryptRSA()
1070 *sigOutSize = key->publicKey->size; in _cpri__SignRSA()
1127 if(sigInSize != key->publicKey->size) in _cpri__ValidateSignatureRSA()