Lines Matching refs:keyMaterial_p

415  * @param keyMaterial_p       RW: A N8_RSAKeyMaterial_t pointer.
429 N8_Status_t N8_SKSAllocateRSA(N8_RSAKeyMaterial_t *keyMaterial_p,
443 CHECK_OBJECT(keyMaterial_p, ret);
444 CHECK_OBJECT(keyMaterial_p->privateKey.value_p, ret);
452 if ((keyMaterial_p->p.lengthBytes == 0) ||
453 (keyMaterial_p->q.lengthBytes == 0))
459 sks_key_p = &keyMaterial_p->SKSKeyHandle;
461 ret = n8_verifyUnitID(keyMaterial_p->unitID, sks_key_p);
467 if (keyMaterial_p->q.lengthBytes != keyMaterial_p->p.lengthBytes)
475 if ((keyMaterial_p->q.lengthBytes * 2) !=
476 keyMaterial_p->privateKey.lengthBytes)
485 if (keyMaterial_p->privateKey.lengthBytes % 32 != 0 &&
486 keyMaterial_p->privateKey.lengthBytes % 32 <= 16)
495 ret = n8_checkAndFreeEntry(keyEntryName_p, keyMaterial_p->SKSKeyHandle.unitID);
498 ret = N8_RSAInitializeKey(&key, N8_PRIVATE_CRT, keyMaterial_p, NULL);
501 keyLength = keyMaterial_p->privateKey.lengthBytes;
725 * @param keyMaterial_p RW: A N8_DSAKeyMaterial_t pointer.
740 N8_Status_t N8_SKSAllocateDSA(N8_DSAKeyMaterial_t *keyMaterial_p,
754 CHECK_OBJECT(keyMaterial_p, ret);
755 CHECK_OBJECT(keyMaterial_p->privateKey.value_p, ret);
763 if ((keyMaterial_p->p.lengthBytes == 0) ||
764 (keyMaterial_p->q.lengthBytes == 0))
770 ret = n8_DSAValidateKey(keyMaterial_p, N8_PRIVATE);
773 sks_key_p = &keyMaterial_p->SKSKeyHandle;
775 ret = n8_verifyUnitID(keyMaterial_p->unitID, sks_key_p);
780 BYTES_TO_PKDIGITS(keyMaterial_p->p.lengthBytes);
784 ret = n8_checkAndFreeEntry(keyEntryName_p, keyMaterial_p->SKSKeyHandle.unitID);
787 ret = N8_DSAInitializeKey(&key, N8_PRIVATE, keyMaterial_p, NULL);