Home
last modified time | relevance | path

Searched refs:kcopy (Results 1 – 4 of 4) sorted by relevance

/freebsd/sys/contrib/libsodium/src/libsodium/crypto_stream/salsa2012/ref/
H A Dstream_salsa2012_ref.c19 unsigned char kcopy[32]; in crypto_stream_salsa2012() local
27 kcopy[i] = k[i]; in crypto_stream_salsa2012()
36 crypto_core_salsa2012(c, in, kcopy, NULL); in crypto_stream_salsa2012()
47 crypto_core_salsa2012(block, in, kcopy, NULL); in crypto_stream_salsa2012()
53 sodium_memzero(kcopy, sizeof kcopy); in crypto_stream_salsa2012()
65 unsigned char kcopy[32]; in crypto_stream_salsa2012_xor() local
73 kcopy[i] = k[i]; in crypto_stream_salsa2012_xor()
82 crypto_core_salsa2012(block, in, kcopy, NULL); in crypto_stream_salsa2012_xor()
97 crypto_core_salsa2012(block, in, kcopy, NULL); in crypto_stream_salsa2012_xor()
103 sodium_memzero(kcopy, sizeof kcopy); in crypto_stream_salsa2012_xor()
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_stream/salsa208/ref/
H A Dstream_salsa208_ref.c19 unsigned char kcopy[32]; in crypto_stream_salsa208() local
27 kcopy[i] = k[i]; in crypto_stream_salsa208()
36 crypto_core_salsa208(c, in, kcopy, NULL); in crypto_stream_salsa208()
47 crypto_core_salsa208(block, in, kcopy, NULL); in crypto_stream_salsa208()
53 sodium_memzero(kcopy, sizeof kcopy); in crypto_stream_salsa208()
65 unsigned char kcopy[32]; in crypto_stream_salsa208_xor() local
73 kcopy[i] = k[i]; in crypto_stream_salsa208_xor()
82 crypto_core_salsa208(block, in, kcopy, NULL); in crypto_stream_salsa208_xor()
97 crypto_core_salsa208(block, in, kcopy, NULL); in crypto_stream_salsa208_xor()
103 sodium_memzero(kcopy, sizeof kcopy); in crypto_stream_salsa208_xor()
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_stream/salsa20/ref/
H A Dsalsa20_ref.c24 unsigned char kcopy[32]; in stream_ref() local
32 kcopy[i] = k[i]; in stream_ref()
41 crypto_core_salsa20(c, in, kcopy, NULL); in stream_ref()
52 crypto_core_salsa20(block, in, kcopy, NULL); in stream_ref()
58 sodium_memzero(kcopy, sizeof kcopy); in stream_ref()
70 unsigned char kcopy[32]; in stream_ref_xor_ic() local
78 kcopy[i] = k[i]; in stream_ref_xor_ic()
88 crypto_core_salsa20(block, in, kcopy, NULL); in stream_ref_xor_ic()
103 crypto_core_salsa20(block, in, kcopy, NULL); in stream_ref_xor_ic()
109 sodium_memzero(kcopy, sizeof kcopy); in stream_ref_xor_ic()
/freebsd/crypto/openssh/
H A Dkrl.c369 struct sshkey *kcopy; in plain_key_blob() local
372 if ((r = sshkey_from_private(key, &kcopy)) != 0) in plain_key_blob()
374 if (sshkey_is_cert(kcopy)) { in plain_key_blob()
375 if ((r = sshkey_drop_cert(kcopy)) != 0) { in plain_key_blob()
376 sshkey_free(kcopy); in plain_key_blob()
380 r = sshkey_to_blob(kcopy, blob, blen); in plain_key_blob()
381 sshkey_free(kcopy); in plain_key_blob()