Lines Matching defs:prime
46 * attribute CKA_PRIME (prime p)
52 * attribute CKA_PRIME (prime p)
58 * attribute CKA_PRIME (prime p)
668 CK_BYTE *prime = NULL, *base = NULL, *pub = NULL;
683 prime = (CK_BYTE *) attr->pValue;
691 REQUIRE((prime != NULL) && (base != NULL) && (pub != NULL));
697 isc_safe_memequal(pk11_dh_bn768, prime, plen)) ||
699 isc_safe_memequal(pk11_dh_bn1024, prime, plen)) ||
701 isc_safe_memequal(pk11_dh_bn1536, prime, plen)))) {
712 if (isc_safe_memequal(pk11_dh_bn768, prime,
715 else if (isc_safe_memequal(pk11_dh_bn1024, prime,
722 memmove(r.base, prime, plen);
744 CK_BYTE *prime = NULL, *base = NULL, *pub = NULL;
765 * Read the prime length. 1 & 2 are table entries, > 16 means a
766 * prime follows, otherwise an error.
788 prime = pk11_dh_bn768;
792 prime = pk11_dh_bn1024;
796 prime = pk11_dh_bn1536;
804 prime = r.base;
809 * Read the generator length. This should be 0 if the prime was
810 * special, but it might not be. If it's 0 and the prime is not
851 key->key_size = pk11_numbits(prime, plen_);
864 memmove(attr[0].pValue, prime, plen_);
924 CK_ATTRIBUTE *prime = NULL, *base = NULL, *pub = NULL, *prv = NULL;
948 prime = attr;
954 if ((prime == NULL) || (base == NULL) ||
960 bufs[i] = isc_mem_get(key->mctx, prime->ulValueLen);
965 memset(bufs[i], 0, prime->ulValueLen);
971 priv.elements[i].length = (unsigned short) prime->ulValueLen;
972 memmove(bufs[i], prime->pValue, prime->ulValueLen);
1000 isc_safe_memwipe(bufs[i], prime->ulValueLen);
1001 isc_mem_put(key->mctx, bufs[i], prime->ulValueLen);