Searched refs:privKeyBytes (Results 1 – 1 of 1) sorted by relevance
/titanic_50/usr/src/common/crypto/ecc/ |
H A D | ec.c | 247 const unsigned char *privKeyBytes, int privKeyLen, int kmflag) in ec_NewKey() argument 261 if (!ecParams || !privKey || !privKeyBytes || (privKeyLen < 0)) { in ec_NewKey() 322 memcpy(key->privateValue.data, privKeyBytes, len); in ec_NewKey() 325 memcpy(key->privateValue.data + (len - privKeyLen), privKeyBytes, privKeyLen); in ec_NewKey() 383 unsigned char *privKeyBytes = NULL; in ec_GenerateRandomPrivateKey() local 397 if ((privKeyBytes = PORT_Alloc(2*len, kmflag)) == NULL) goto cleanup; in ec_GenerateRandomPrivateKey() 398 CHECK_SEC_OK( RNG_GenerateGlobalRandomBytes(privKeyBytes, 2*len) ); in ec_GenerateRandomPrivateKey() 399 CHECK_MPI_OK( mp_read_unsigned_octets(&privKeyVal, privKeyBytes, 2*len) ); in ec_GenerateRandomPrivateKey() 405 CHECK_MPI_OK( mp_to_fixlen_octets(&privKeyVal, privKeyBytes, len) ); in ec_GenerateRandomPrivateKey() 406 memset(privKeyBytes+len, 0, len); in ec_GenerateRandomPrivateKey() [all …]
|