Home
last modified time | relevance | path

Searched refs:encoded (Results 1 – 25 of 914) sorted by relevance

12345678910>>...37

/netbsd-src/external/apache2/argon2/dist/phc-winner-argon2/src/
H A Dargon2.c103 void *hash, const size_t hashlen, char *encoded, in argon2_hash() argument
165 if (encoded && encodedlen) { in argon2_hash()
166 if (encode_string(encoded, encodedlen, &context, type) != ARGON2_OK) { in argon2_hash()
168 clear_internal_memory(encoded, encodedlen); in argon2_hash()
183 char *encoded, const size_t encodedlen) { in argon2i_hash_encoded() argument
186 NULL, hashlen, encoded, encodedlen, Argon2_i, in argon2i_hash_encoded()
203 char *encoded, const size_t encodedlen) { in argon2d_hash_encoded() argument
206 NULL, hashlen, encoded, encodedlen, Argon2_d, in argon2d_hash_encoded()
223 char *encoded, const size_t encodedlen) { in argon2id_hash_encoded() argument
226 NULL, hashlen, encoded, encodedlen, Argon2_id, in argon2id_hash_encoded()
[all …]
H A Drun.c101 char * encoded = NULL; in run() local
128 encoded = malloc(encodedlen + 1); in run()
129 if (!encoded) { in run()
135 out, outlen, encoded, encodedlen, type, in run()
143 puts(encoded); in run()
150 free(encoded); in run()
158 printf("Encoded:\t%s\n", encoded); in run()
163 result = argon2_verify(encoded, pwd, pwdlen, type); in run()
167 free(encoded); in run()
H A Dtest.c41 char encoded[ENCODED_LEN]; in hashtest() local
48 OUT_LEN, encoded, ENCODED_LEN, type, version); in hashtest()
56 assert(memcmp(encoded, mcfref, strlen(mcfref)) == 0); in hashtest()
59 ret = argon2_verify(encoded, pwd, strlen(pwd), type); in hashtest()
/netbsd-src/sys/external/isc/libsodium/dist/src/libsodium/crypto_pwhash/argon2/
H A Dargon2.c89 const size_t hashlen, char *encoded, const size_t encodedlen, in argon2_hash() argument
143 if (encoded && encodedlen) { in argon2_hash()
144 if (encode_string(encoded, encodedlen, &context, type) != ARGON2_OK) { in argon2_hash()
146 sodium_memzero(encoded, encodedlen); in argon2_hash()
162 const size_t saltlen, const size_t hashlen, char *encoded, in argon2i_hash_encoded() argument
166 NULL, hashlen, encoded, encodedlen, Argon2_i); in argon2i_hash_encoded()
183 const size_t saltlen, const size_t hashlen, char *encoded, in argon2id_hash_encoded() argument
187 NULL, hashlen, encoded, encodedlen, Argon2_id); in argon2id_hash_encoded()
201 argon2_verify(const char *encoded, const void *pwd, const size_t pwdlen, in argon2_verify() argument
218 encoded_len = strlen(encoded); in argon2_verify()
[all …]
H A Dargon2.h216 char *encoded, const size_t encodedlen);
237 char *encoded, const size_t encodedlen);
281 void *hash, const size_t hashlen, char *encoded,
291 int argon2i_verify(const char *encoded, const void *pwd, const size_t pwdlen);
300 int argon2id_verify(const char *encoded, const void *pwd, const size_t pwdlen);
303 int argon2_verify(const char *encoded, const void *pwd, const size_t pwdlen,
/netbsd-src/crypto/external/bsd/openssh/dist/
H A Dssh-ed25519-sk.c132 struct sshbuf *encoded = NULL; in ssh_ed25519_sk_verify() local
204 if ((encoded = sshbuf_new()) == NULL) { in ssh_ed25519_sk_verify()
208 if (sshbuf_put(encoded, sigblob, len) != 0 || in ssh_ed25519_sk_verify()
209 sshbuf_put(encoded, apphash, sizeof(apphash)) != 0 || in ssh_ed25519_sk_verify()
210 sshbuf_put_u8(encoded, sig_flags) != 0 || in ssh_ed25519_sk_verify()
211 sshbuf_put_u32(encoded, sig_counter) != 0 || in ssh_ed25519_sk_verify()
212 sshbuf_put(encoded, msghash, sizeof(msghash)) != 0) { in ssh_ed25519_sk_verify()
218 sshbuf_dump(encoded, stderr); in ssh_ed25519_sk_verify()
220 sm = sshbuf_ptr(encoded); in ssh_ed25519_sk_verify()
221 smlen = sshbuf_len(encoded); in ssh_ed25519_sk_verify()
[all …]
H A Dsshkey-xmss.c890 struct sshbuf *encrypted = NULL, *encoded = NULL, *padded = NULL; in sshkey_xmss_encrypt_state() local
917 (encoded = sshbuf_new()) == NULL || in sshkey_xmss_encrypt_state()
928 if ((r = sshbuf_put(encoded, XMSS_MAGIC, sizeof(XMSS_MAGIC))) != 0 || in sshkey_xmss_encrypt_state()
929 (r = sshbuf_put_u32(encoded, state->idx)) != 0) in sshkey_xmss_encrypt_state()
943 if ((r = sshbuf_put_u32(encoded, encrypted_len)) != 0) in sshkey_xmss_encrypt_state()
945 aadlen = sshbuf_len(encoded); in sshkey_xmss_encrypt_state()
948 if ((r = sshbuf_putb(encoded, padded)) != 0) in sshkey_xmss_encrypt_state()
957 (r = cipher_crypt(ciphercontext, 0, cp, sshbuf_ptr(encoded), in sshkey_xmss_encrypt_state()
969 sshbuf_free(encoded); in sshkey_xmss_encrypt_state()
977 sshkey_xmss_decrypt_state(const struct sshkey *k, struct sshbuf *encoded, in sshkey_xmss_decrypt_state() argument
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/
H A Dpemtest.c19 const char *encoded; member
39 const char *encoded = b64_pem_data[idx].encoded; in test_b64() local
43 || !TEST_true(BIO_printf(b, "%s\n", encoded)) in test_b64()
67 const char *encoded = b64_pem_data[0].encoded; in test_invalid() local
71 || !TEST_true(BIO_printf(b, "%c%s\n", '\t', encoded)) in test_invalid()
/netbsd-src/crypto/external/bsd/openssl/dist/test/
H A Dpemtest.c19 const char *encoded; member
41 const char *encoded = b64_pem_data[idx].encoded; in test_b64() local
45 || !TEST_true(BIO_printf(b, "%s\n", encoded)) in test_b64()
69 const char *encoded = b64_pem_data[0].encoded; in test_invalid() local
73 || !TEST_true(BIO_printf(b, "%c%s\n", '\t', encoded)) in test_invalid()
H A Dpunycode_test.c20 const char *encoded; member
154 if (!TEST_true(ossl_punycode_decode(tc->encoded, strlen(tc->encoded), in test_punycode()
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/rsa/
H A Drsa_sign.c74 const unsigned char *encoded = NULL; in RSA_sign() local
92 encoded = m; in RSA_sign()
96 encoded = tmps; in RSA_sign()
103 encrypt_len = RSA_private_encrypt(encoded_len, encoded, sigret, rsa, in RSA_sign()
129 unsigned char *decrypt_buf = NULL, *encoded = NULL; in int_rsa_verify() local
215 if (!encode_pkcs1(&encoded, &encoded_len, type, m, m_len)) in int_rsa_verify()
219 || memcmp(encoded, decrypt_buf, encoded_len) != 0) { in int_rsa_verify()
234 OPENSSL_clear_free(encoded, (size_t)encoded_len); in int_rsa_verify()
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/wind/
H A Didn-lookup.c67 char encoded[1024]; in lookup() local
91 ep = encoded; in lookup()
98 len = sizeof(encoded) - (ep - encoded); in lookup()
110 printf("Converted \"%s\" into \"%s\"\n", name, encoded); in lookup()
114 ret = getaddrinfo(encoded, NULL, &hints, &ai); in lookup()
/netbsd-src/crypto/external/bsd/openssl/dist/doc/man3/
H A DEVP_PKEY_set1_encoded_public_key.pod37 The format for the encoded public key will depend on the algorithm in use. For
38 DH it should be encoded as a positive integer in big-endian form. For EC is
40 Curve Cryptography") standard. For X25519 and X448 it should be encoded in a
43 The key to be updated is supplied in B<pkey>. The buffer containing the encoded
47 the encoded public key is returned to the application. The key containing the
48 public key data is supplied in B<pkey>. A buffer containing the encoded key will
49 be allocated and stored in B<*ppub>. The length of the encoded public key is
67 EVP_PKEY_get1_encoded_public_key() returns the length of the encoded key or 0 for failure.
96 =head2 Get an encoded public key to send to a peer
110 * Send the encoded public key stored in the buffer at "pubkey" and of
H A Dd2i_RSAPrivateKey.pod130 B<d2i_I<TYPE>PrivateKey>() and derivates thereof decode DER encoded
133 B<d2i_I<TYPE>PublicKey>() and derivates thereof decode DER encoded
136 B<d2i_I<TYPE>params>() and derivates thereof decode DER encoded B<I<TYPE>>
139 B<d2i_I<TYPE>_PUBKEY>() and derivates thereof decode DER encoded B<I<TYPE>>
143 B<I<TYPE>> data into a type specific DER encoded structure.
146 B<I<TYPE>> data into a type specific DER encoded structure.
149 parameters data into a type specific DER encoded structure.
152 B<I<TYPE>> data into a DER encoded B<SubjectPublicKeyInfo> structure.
156 Similarly, i2d_RSAPrivateKey() and i2d_RSAPublicKey() produce DER encoded
181 A caveat is that L<i2d_PrivateKey(3)> may output a DER encoded PKCS#8
[all …]
H A DEC_KEY_get_enc_flags.pod22 When reading a private key encoded without an associated public key (e.g. if
24 the missing public key automatically. Private keys encoded without parameters
33 the curve are not encoded along with the private key. If EC_PKEY_NO_PUBKEY is
34 set then the public key is not encoded along with the private key.
/netbsd-src/external/apache2/argon2/dist/phc-winner-argon2/include/
H A Dargon2.h269 const size_t hashlen, char *encoded,
297 const size_t hashlen, char *encoded,
311 const size_t hashlen, char *encoded,
326 const size_t hashlen, char *encoded,
337 ARGON2_PUBLIC int argon2i_verify(const char *encoded, const void *pwd,
340 ARGON2_PUBLIC int argon2d_verify(const char *encoded, const void *pwd,
343 ARGON2_PUBLIC int argon2id_verify(const char *encoded, const void *pwd,
347 ARGON2_PUBLIC int argon2_verify(const char *encoded, const void *pwd,
/netbsd-src/external/bsd/openldap/dist/contrib/ldapc++/src/
H A DLDAPUrl.cpp344 std::string encoded = ""; in components2Url() local
349 url << "[" << this->percentEncode(m_Host, encoded) << "]"; in components2Url()
351 url << this->percentEncode(m_Host, encoded, PCT_ENCFLAG_SLASH); in components2Url()
359 encoded = ""; in components2Url()
361 this->percentEncode( m_DN, encoded ); in components2Url()
362 url << encoded; in components2Url()
371 this->percentEncode( *i, encoded ); in components2Url()
377 url << encoded; in components2Url()
392 this->percentEncode( m_Filter, encoded ); in components2Url()
393 url << qm << "?" << encoded; in components2Url()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/doc/man7/
H A Dpassphrase-encoding.pod22 This means that for an object that was encrypted using a pass phrase encoded in
23 ISO-8859-1, that object needs to be decrypted using a pass phrase encoded in
30 The standard stipulates that the pass phrase shall be encoded as an ASN.1
32 encoded in big endian (UCS-2 BE).
40 Treats the received pass phrase as UTF-8 encoded and tries to re-encode it to
47 Assumes that the pass phrase is encoded in ASCII or ISO-8859-1 and
64 A pass phrase encoded in ISO-8859-2 could very well have a sequence such as
67 be misinterpreted as the perfectly valid UTF-8 encoded code point U+00EF (LATIN
76 On the same accord, anything encoded in UTF-8 that was given to OpenSSL older
83 This API stipulates that pass phrases should be UTF-8 encoded, and that any
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/doc/man7/
H A Dpassphrase-encoding.pod22 This means that for an object that was encrypted using a pass phrase encoded in
23 ISO-8859-1, that object needs to be decrypted using a pass phrase encoded in
30 The standard stipulates that the pass phrase shall be encoded as an ASN.1
32 encoded in big endian (UCS-2 BE).
40 Treats the received pass phrase as UTF-8 encoded and tries to re-encode it to
47 Assumes that the pass phrase is encoded in ASCII or ISO-8859-1 and
64 A pass phrase encoded in ISO-8859-2 could very well have a sequence such as
67 be misinterpreted as the perfectly valid UTF-8 encoded code point U+00EF (LATIN
76 On the same accord, anything encoded in UTF-8 that was given to OpenSSL older
83 This API stipulates that pass phrases should be UTF-8 encoded, and that any
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/rsa/
H A Drsa_sign.c279 const unsigned char *encoded = NULL; in RSA_sign() local
298 encoded = m; in RSA_sign()
302 encoded = tmps; in RSA_sign()
309 encrypt_len = RSA_private_encrypt((int)encoded_len, encoded, sigret, rsa, in RSA_sign()
337 unsigned char *decrypt_buf = NULL, *encoded = NULL; in ossl_rsa_verify() local
425 if (!encode_pkcs1(&encoded, &encoded_len, type, m, m_len)) in ossl_rsa_verify()
429 || memcmp(encoded, decrypt_buf, encoded_len) != 0) { in ossl_rsa_verify()
444 OPENSSL_clear_free(encoded, encoded_len); in ossl_rsa_verify()
/netbsd-src/crypto/external/bsd/openssl.old/dist/doc/man1/
H A Dcrl2pkcs7.pod35 This specifies the CRL input format. B<DER> format is DER encoded CRL
36 structure.B<PEM> (the default) is a base64 encoded version of
42 encoded PKCS#7 structure.B<PEM> (the default) is a base64 encoded version of
87 the certificate enrollment process. This involves sending the DER encoded output
90 The B<PEM> encoded form with the header and footer lines removed can be used to
H A Dsess_id.pod22 The B<sess_id> process the encoded version of the SSL session structure
38 This specifies the input format. The B<DER> option uses an ASN1 DER encoded
41 format base64 encoded with additional header and footer lines.
62 plain text in addition to the encoded version.
71 This option prevents output of the encoded version of the session.
138 The PEM encoded session format uses the header and footer lines:
/netbsd-src/crypto/external/bsd/openssl.old/dist/doc/man3/
H A DBIO_f_base64.pod35 used to signal that no more data is to be encoded: this is used
46 Because of the format of base64 encoding the end of the encoded
69 Read Base64 encoded data from standard input and write the decoded
88 The ambiguity of EOF in base64 encoded data can cause additional
89 data following the base64 encoded block to be misinterpreted.
H A DEC_KEY_get_enc_flags.pod22 When reading a private key encoded without an associated public key (e.g. if
24 the missing public key automatically. Private keys encoded without parameters
33 the curve are not encoded along with the private key. If EC_PKEY_NO_PUBKEY is
34 set then the public key is not encoded along with the private key.
/netbsd-src/crypto/external/bsd/openssl/dist/doc/man1/
H A Dopenssl-kdf.pod.in150 Use TLS1-PRF to create a hex-encoded derived key from a secret key and seed:
155 Use HKDF to create a hex-encoded derived key from a secret key, salt and info:
160 Use SSKDF with KMAC to create a hex-encoded derived key from a secret key, salt and info:
166 Use SSKDF with HMAC to create a hex-encoded derived key from a secret key, salt and info:
172 Use SSKDF with Hash to create a hex-encoded derived key from a secret key, salt and info:
178 Use SSHKDF to create a hex-encoded derived key from a secret key, hash and session_id:
186 Use PBKDF2 to create a hex-encoded derived key from a password and salt:
191 Use scrypt to create a hex-encoded derived key from a password and salt:

12345678910>>...37