Home
last modified time | relevance | path

Searched refs:octx (Results 1 – 12 of 12) sorted by relevance

/freebsd/crypto/openssl/crypto/evp/
H A De_aes.c374 if (CRYPTO_ocb128_setiv(&octx->ocb, iv, octx->ivlen, octx->taglen) in aesni_ocb_init_key()
383 CRYPTO_ocb128_setiv(&octx->ocb, iv, octx->ivlen, octx->taglen); in aesni_ocb_init_key()
385 memcpy(octx->iv, iv, octx->ivlen); in aesni_ocb_init_key()
727 if (CRYPTO_ocb128_setiv(&octx->ocb, iv, octx->ivlen, octx->taglen) in aes_t4_ocb_init_key()
736 CRYPTO_ocb128_setiv(&octx->ocb, iv, octx->ivlen, octx->taglen); in aes_t4_ocb_init_key()
738 memcpy(octx->iv, iv, octx->ivlen); in aes_t4_ocb_init_key()
3864 if (CRYPTO_ocb128_setiv(&octx->ocb, iv, octx->ivlen, octx->taglen) in aes_ocb_init_key()
3873 CRYPTO_ocb128_setiv(&octx->ocb, iv, octx->ivlen, octx->taglen); in aes_ocb_init_key()
3875 memcpy(octx->iv, iv, octx->ivlen); in aes_ocb_init_key()
4007 (&octx->ocb, octx->aad_buf, octx->aad_buf_len)) in aes_ocb_cipher()
[all …]
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_auth/hmacsha256/
H A Dauth_hmacsha256.c58 crypto_hash_sha256_init(&state->octx); in crypto_auth_hmacsha256_init()
63 crypto_hash_sha256_update(&state->octx, pad, 64); in crypto_auth_hmacsha256_init()
87 crypto_hash_sha256_update(&state->octx, ihash, 32); in crypto_auth_hmacsha256_final()
88 crypto_hash_sha256_final(&state->octx, out); in crypto_auth_hmacsha256_final()
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_auth/hmacsha512/
H A Dauth_hmacsha512.c58 crypto_hash_sha512_init(&state->octx); in crypto_auth_hmacsha512_init()
63 crypto_hash_sha512_update(&state->octx, pad, 128); in crypto_auth_hmacsha512_init()
87 crypto_hash_sha512_update(&state->octx, ihash, 64); in crypto_auth_hmacsha512_final()
88 crypto_hash_sha512_final(&state->octx, out); in crypto_auth_hmacsha512_final()
/freebsd/contrib/netbsd-tests/lib/libpthread/
H A Dt_swapcontext.c47 ucontext_t octx; variable
66 ATF_REQUIRE(swapcontext(&nctx, &octx)); in swapfunc()
83 ATF_REQUIRE_MSG(swapcontext(&octx, &nctx) != -1, "swapcontext failed: %s", in threadfunc()
/freebsd/crypto/openssh/
H A Dhmac.c32 struct ssh_digest_ctx *octx; member
53 (ret->octx = ssh_digest_start(alg)) == NULL || in ssh_hmac_start()
84 if (ssh_digest_update(ctx->octx, ctx->buf, ctx->buf_len) < 0) in ssh_hmac_init()
116 if (ssh_digest_copy_state(ctx->octx, ctx->digest) < 0 || in ssh_hmac_final()
128 ssh_digest_free(ctx->octx); in ssh_hmac_free()
H A Dumac.c1221 struct umac_ctx *ctx, *octx; in umac_new() local
1225 octx = ctx = xcalloc(1, sizeof(*ctx) + ALLOC_BOUNDARY); in umac_new()
1232 ctx->free_ptr = octx; in umac_new()
/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_swapcontext.c42 ucontext_t octx; variable
64 ATF_REQUIRE(swapcontext(&nctx, &octx)); in swapfunc()
97 ATF_REQUIRE(swapcontext(&octx, &nctx) == 0); in mainfunc()
/freebsd/crypto/openssl/crypto/modes/
H A Docb128.c134 OCB128_CONTEXT *octx; in CRYPTO_ocb128_new() local
137 if ((octx = OPENSSL_malloc(sizeof(*octx))) != NULL) { in CRYPTO_ocb128_new()
138 ret = CRYPTO_ocb128_init(octx, keyenc, keydec, encrypt, decrypt, in CRYPTO_ocb128_new()
141 return octx; in CRYPTO_ocb128_new()
142 OPENSSL_free(octx); in CRYPTO_ocb128_new()
/freebsd/sys/contrib/libsodium/src/libsodium/include/sodium/
H A Dcrypto_auth_hmacsha256.h40 crypto_hash_sha256_state octx; member
H A Dcrypto_auth_hmacsha512.h40 crypto_hash_sha512_state octx; member
/freebsd/sys/crypto/openssl/
H A Dossl.h63 struct ossl_hash_context octx; member
H A Dossl.c241 csp->csp_auth_klen, &s->hash.octx); in ossl_newsession_hash()
352 ctx = s->hash.octx; in ossl_process_hash()