Home
last modified time | relevance | path

Searched refs:p_bytes (Results 1 – 5 of 5) sorted by relevance

/freebsd/crypto/openssl/crypto/sm2/
H A Dsm2_sign.c42 int p_bytes = 0; in ossl_sm2_compute_z_digest() local
109 p_bytes = BN_num_bytes(p); in ossl_sm2_compute_z_digest()
110 buf = OPENSSL_zalloc(p_bytes); in ossl_sm2_compute_z_digest()
116 if (BN_bn2binpad(a, buf, p_bytes) < 0 in ossl_sm2_compute_z_digest()
117 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
118 || BN_bn2binpad(b, buf, p_bytes) < 0 in ossl_sm2_compute_z_digest()
119 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
123 || BN_bn2binpad(xG, buf, p_bytes) < 0 in ossl_sm2_compute_z_digest()
124 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
125 || BN_bn2binpad(yG, buf, p_bytes) < 0 in ossl_sm2_compute_z_digest()
[all …]
/freebsd/lib/libcrypt/
H A Dcrypt-sha256.c70 char *cp, *p_bytes, *s_bytes, *endp; in crypt_sha256() local
153 cp = p_bytes = alloca(key_len); in crypt_sha256()
186 SHA256_Update(&ctx, p_bytes, key_len); in crypt_sha256()
196 SHA256_Update(&ctx, p_bytes, key_len); in crypt_sha256()
202 SHA256_Update(&ctx, p_bytes, key_len); in crypt_sha256()
239 explicit_bzero(p_bytes, key_len); in crypt_sha256()
H A Dcrypt-sha512.c70 char *cp, *p_bytes, *s_bytes, *endp; in crypt_sha512() local
153 cp = p_bytes = alloca(key_len); in crypt_sha512()
186 SHA512_Update(&ctx, p_bytes, key_len); in crypt_sha512()
196 SHA512_Update(&ctx, p_bytes, key_len); in crypt_sha512()
202 SHA512_Update(&ctx, p_bytes, key_len); in crypt_sha512()
251 explicit_bzero(p_bytes, key_len); in crypt_sha512()
/freebsd/crypto/openssl/apps/
H A Dpasswd.c523 char *p_bytes = NULL; in shacrypt() local
653 if ((p_bytes = OPENSSL_zalloc(passwd_len)) == NULL) in shacrypt()
655 for (cp = p_bytes, n = passwd_len; n > buf_size; n -= buf_size, cp += buf_size) in shacrypt()
680 (n & 1) ? (const unsigned char *)p_bytes : buf, in shacrypt()
688 if (!EVP_DigestUpdate(md2, p_bytes, passwd_len)) in shacrypt()
692 (n & 1) ? buf : (const unsigned char *)p_bytes, in shacrypt()
702 OPENSSL_free(p_bytes); in shacrypt()
704 p_bytes = NULL; in shacrypt()
772 OPENSSL_free(p_bytes); in shacrypt()
/freebsd/lib/libc/rpc/
H A Dauth_time.c82 unsigned char p_bytes[2]; in uaddr_to_sockaddr() local
95 p_bytes[0] = (unsigned char)a[4] & 0x000000FF; in uaddr_to_sockaddr()
96 p_bytes[1] = (unsigned char)a[5] & 0x000000FF; in uaddr_to_sockaddr()
99 bcopy((char *)&p_bytes, (char *)&sin->sin_port, 2); in uaddr_to_sockaddr()