Lines Matching refs:keylen
32 ret->keylen = X25519_KEYLEN; in ossl_ecx_key_new()
35 ret->keylen = X448_KEYLEN; in ossl_ecx_key_new()
38 ret->keylen = ED25519_KEYLEN; in ossl_ecx_key_new()
41 ret->keylen = ED448_KEYLEN; in ossl_ecx_key_new()
78 OPENSSL_secure_clear_free(key->privkey, key->keylen); in ossl_ecx_key_free()
102 key->privkey = OPENSSL_secure_zalloc(key->keylen); in ossl_ecx_key_allocate_privkey()
107 int ossl_ecx_compute_key(ECX_KEY *peer, ECX_KEY *priv, size_t keylen, in ossl_ecx_compute_key() argument
117 if (!ossl_assert(keylen == X25519_KEYLEN in ossl_ecx_compute_key()
118 || keylen == X448_KEYLEN)) { in ossl_ecx_compute_key()
124 *secretlen = keylen; in ossl_ecx_compute_key()
127 if (outlen < keylen) { in ossl_ecx_compute_key()
132 if (keylen == X25519_KEYLEN) { in ossl_ecx_compute_key()
161 *secretlen = keylen; in ossl_ecx_compute_key()