Home
last modified time | relevance | path

Searched refs:keybytes (Results 1 – 13 of 13) sorted by relevance

/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/
H A Dcombine_keys.c84 size_t keybytes, keylength; in krb5int_c_combine_keys() local
111 keybytes = enc->keybytes; in krb5int_c_combine_keys()
162 for (i = 0; i < keybytes; i++) in krb5int_c_combine_keys()
178 for (i = 0; i < keybytes; i++) in krb5int_c_combine_keys()
192 memcpy(combined + keybytes, r2, keybytes); in krb5int_c_combine_keys()
194 krb5_nfold((keybytes * 2) * 8, combined, keybytes * 8, rnd); in krb5int_c_combine_keys()
280 memset(r1, 0, keybytes); in krb5int_c_combine_keys()
281 memset(r2, 0, keybytes); in krb5int_c_combine_keys()
282 memset(rnd, 0, keybytes); in krb5int_c_combine_keys()
312 keybytes = enc->keybytes; in dr()
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/dk/
H A Dstringtokey.c46 size_t keybytes, keylength, concatlen; in krb5int_dk_string_to_key() local
53 keybytes = enc->keybytes; in krb5int_dk_string_to_key()
60 if ((foldstring = (unsigned char *) malloc(keybytes)) == NULL) { in krb5int_dk_string_to_key()
76 krb5_nfold(concatlen*8, concat, keybytes*8, foldstring); in krb5int_dk_string_to_key()
78 indata.length = keybytes; in krb5int_dk_string_to_key()
101 memset(foldstring, 0, keybytes); in krb5int_dk_string_to_key()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/
H A Dkeylengths.c41 size_t *keybytes, size_t *keylength) in krb5_c_keylengths() argument
45 if (keybytes == NULL && keylength == NULL) in krb5_c_keylengths()
56 if (keybytes) in krb5_c_keylengths()
57 *keybytes = krb5_enctypes_list[i].enc->keybytes; in krb5_c_keylengths()
H A Dmake_random_key.c43 size_t keybytes, keylength; in krb5_c_make_random_key() local
63 keybytes = enc->keybytes; in krb5_c_make_random_key()
66 if ((bytes = (unsigned char *) malloc(keybytes)) == NULL) in krb5_c_make_random_key()
74 random_data.length = keybytes; in krb5_c_make_random_key()
95 memset(bytes, 0, keybytes); in krb5_c_make_random_key()
H A Dstring_to_key.c62 size_t keybytes, keylength; in krb5_c_string_to_key_with_params() local
87 keybytes = enc->keybytes; in krb5_c_string_to_key_with_params()
H A Dpkcs11slot.c156 keysize = krb5_enctypes_list[i].enc->keybytes; in slot_supports_krb5()
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/dk/
H A Dderive.c264 size_t blocksize, keybytes, keylength, n; local
272 keybytes = enc->keybytes;
289 if ((rawkey = (unsigned char *) MALLOC(keybytes)) == NULL) {
312 while (n < keybytes) {
320 if ((keybytes - n) <= outblock.length) {
321 (void) memcpy(rawkey+n, outblock.data, (keybytes - n));
332 inblock.length = keybytes;
341 (void) memset(rawkey, 0, keybytes);
343 FREE(rawkey, keybytes);
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/arcfour/
H A Dk5_arcfour.c86 size_t keybytes, blocksize, hashsize; local
90 keybytes = enc->keybytes;
99 d1.length=keybytes;
114 d2.length=keybytes;
131 d3.length=keybytes;
282 size_t keybytes, hashsize; local
285 keybytes = enc->keybytes;
300 d1.length=keybytes;
315 d2.length=keybytes;
332 d3.length=keybytes;
/illumos-gate/usr/src/lib/crypt_modules/bsdbf/
H A Dblowfish.c435 Blowfish_expand0state(blf_ctx *c, const uint8_t *key, uint16_t keybytes) in Blowfish_expand0state() argument
447 temp = Blowfish_stream2word(key, keybytes, &j); in Blowfish_expand0state()
474 const uint8_t *key, uint16_t keybytes) in Blowfish_expandstate() argument
486 temp = Blowfish_stream2word(key, keybytes, &j); in Blowfish_expandstate()
/illumos-gate/usr/src/uts/common/io/
H A Dcryptmod.c849 while (n < keybytes) { in derive_key()
859 if (keybytes - n < blocklen) { in derive_key()
893 bcopy(rawkey, dkey, keybytes); in derive_key()
898 kmem_free(rawkey, keybytes); in derive_key()
915 int keybytes; in create_derived_keys() local
934 keybytes = 8; in create_derived_keys()
937 keybytes = CRYPT_DES3_KEYBYTES; in create_derived_keys()
941 keybytes = CRYPT_ARCFOUR_KEYBYTES; in create_derived_keys()
944 keybytes = CRYPT_AES128_KEYBYTES; in create_derived_keys()
947 keybytes = CRYPT_AES256_KEYBYTES; in create_derived_keys()
[all …]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/include/
H A Dk5-int.h782 size_t block_size, keybytes, keylength; member
H A Dkrb5.h546 size_t *keybytes, size_t *keylength);
/illumos-gate/usr/src/lib/krb5/plugins/preauth/pkinit/
H A Dpkinit_crypto_openssl.c2217 size_t keybytes, keylength, offset; in pkinit_octetstring2key() local
2250 retval = krb5_c_keylengths(context, etype, &keybytes, &keylength); in pkinit_octetstring2key()
2261 random_data.length = keybytes; in pkinit_octetstring2key()