Home
last modified time | relevance | path

Searched refs:CMAC_CTX (Results 1 – 16 of 16) sorted by relevance

/external/boringssl/src/include/openssl/
Dcmac.h44 OPENSSL_EXPORT CMAC_CTX *CMAC_CTX_new(void);
47 OPENSSL_EXPORT void CMAC_CTX_free(CMAC_CTX *ctx);
51 OPENSSL_EXPORT int CMAC_CTX_copy(CMAC_CTX *out, const CMAC_CTX *in);
60 OPENSSL_EXPORT int CMAC_Init(CMAC_CTX *ctx, const void *key, size_t key_len,
65 OPENSSL_EXPORT int CMAC_Reset(CMAC_CTX *ctx);
69 OPENSSL_EXPORT int CMAC_Update(CMAC_CTX *ctx, const uint8_t *in, size_t in_len);
73 OPENSSL_EXPORT int CMAC_Final(CMAC_CTX *ctx, uint8_t *out, size_t *out_len);
83 BORINGSSL_MAKE_DELETER(CMAC_CTX, CMAC_CTX_free)
Dbase.h385 typedef struct cmac_ctx_st CMAC_CTX; typedef
/external/rust/crates/quiche/deps/boringssl/src/include/openssl/
Dcmac.h44 OPENSSL_EXPORT CMAC_CTX *CMAC_CTX_new(void);
47 OPENSSL_EXPORT void CMAC_CTX_free(CMAC_CTX *ctx);
51 OPENSSL_EXPORT int CMAC_CTX_copy(CMAC_CTX *out, const CMAC_CTX *in);
60 OPENSSL_EXPORT int CMAC_Init(CMAC_CTX *ctx, const void *key, size_t key_len,
65 OPENSSL_EXPORT int CMAC_Reset(CMAC_CTX *ctx);
69 OPENSSL_EXPORT int CMAC_Update(CMAC_CTX *ctx, const uint8_t *in, size_t in_len);
73 OPENSSL_EXPORT int CMAC_Final(CMAC_CTX *ctx, uint8_t *out, size_t *out_len);
83 BORINGSSL_MAKE_DELETER(CMAC_CTX, CMAC_CTX_free)
Dbase.h377 typedef struct cmac_ctx_st CMAC_CTX; typedef
/external/rust/crates/quiche/deps/boringssl/src/crypto/cmac/
Dcmac.c73 static void CMAC_CTX_init(CMAC_CTX *ctx) { in CMAC_CTX_init()
77 static void CMAC_CTX_cleanup(CMAC_CTX *ctx) { in CMAC_CTX_cleanup()
99 CMAC_CTX ctx; in AES_CMAC()
110 CMAC_CTX *CMAC_CTX_new(void) { in CMAC_CTX_new()
111 CMAC_CTX *ctx = OPENSSL_malloc(sizeof(*ctx)); in CMAC_CTX_new()
118 void CMAC_CTX_free(CMAC_CTX *ctx) { in CMAC_CTX_free()
127 int CMAC_CTX_copy(CMAC_CTX *out, const CMAC_CTX *in) { in CMAC_CTX_copy()
174 int CMAC_Init(CMAC_CTX *ctx, const void *key, size_t key_len, in CMAC_Init()
200 int CMAC_Reset(CMAC_CTX *ctx) { in CMAC_Reset()
205 int CMAC_Update(CMAC_CTX *ctx, const uint8_t *in, size_t in_len) { in CMAC_Update()
[all …]
Dcmac_test.cc40 bssl::UniquePtr<CMAC_CTX> ctx(CMAC_CTX_new()); in test()
65 bssl::UniquePtr<CMAC_CTX> ctx2(CMAC_CTX_new()); in test()
158 bssl::UniquePtr<CMAC_CTX> ctx(CMAC_CTX_new()); in TEST()
220 bssl::UniquePtr<CMAC_CTX> ctx(CMAC_CTX_new()); in RunCAVPTest()
/external/boringssl/src/crypto/cmac/
Dcmac.c73 static void CMAC_CTX_init(CMAC_CTX *ctx) { in CMAC_CTX_init()
77 static void CMAC_CTX_cleanup(CMAC_CTX *ctx) { in CMAC_CTX_cleanup()
99 CMAC_CTX ctx; in AES_CMAC()
110 CMAC_CTX *CMAC_CTX_new(void) { in CMAC_CTX_new()
111 CMAC_CTX *ctx = OPENSSL_malloc(sizeof(*ctx)); in CMAC_CTX_new()
118 void CMAC_CTX_free(CMAC_CTX *ctx) { in CMAC_CTX_free()
127 int CMAC_CTX_copy(CMAC_CTX *out, const CMAC_CTX *in) { in CMAC_CTX_copy()
174 int CMAC_Init(CMAC_CTX *ctx, const void *key, size_t key_len, in CMAC_Init()
200 int CMAC_Reset(CMAC_CTX *ctx) { in CMAC_Reset()
205 int CMAC_Update(CMAC_CTX *ctx, const uint8_t *in, size_t in_len) { in CMAC_Update()
[all …]
Dcmac_test.cc40 bssl::UniquePtr<CMAC_CTX> ctx(CMAC_CTX_new()); in test()
65 bssl::UniquePtr<CMAC_CTX> ctx2(CMAC_CTX_new()); in test()
158 bssl::UniquePtr<CMAC_CTX> ctx(CMAC_CTX_new()); in TEST()
220 bssl::UniquePtr<CMAC_CTX> ctx(CMAC_CTX_new()); in RunCAVPTest()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DOpenSSLMac.java248 private NativeRef.CMAC_CTX ctx;
256 NativeRef.CMAC_CTX ctxLocal = new NativeRef.CMAC_CTX(NativeCrypto.CMAC_CTX_new()); in resetContext()
265 final NativeRef.CMAC_CTX ctxLocal = ctx; in updateDirect()
271 final NativeRef.CMAC_CTX ctxLocal = ctx; in doFinal()
277 final NativeRef.CMAC_CTX ctxLocal = ctx; in engineUpdate()
DNativeRef.java63 static final class CMAC_CTX extends NativeRef { class in NativeRef
64 CMAC_CTX(long nativePointer) { in CMAC_CTX() method in NativeRef.CMAC_CTX
DNativeCrypto.java372 static native void CMAC_Init(NativeRef.CMAC_CTX ctx, byte[] key); in CMAC_Init()
374 static native void CMAC_Update(NativeRef.CMAC_CTX ctx, byte[] in, int inOffset, int inLength); in CMAC_Update()
376 static native void CMAC_UpdateDirect(NativeRef.CMAC_CTX ctx, long inPtr, int inLength); in CMAC_UpdateDirect()
378 static native byte[] CMAC_Final(NativeRef.CMAC_CTX ctx); in CMAC_Final()
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLMac.java223 private NativeRef.CMAC_CTX ctx;
231 NativeRef.CMAC_CTX ctxLocal = new NativeRef.CMAC_CTX(NativeCrypto.CMAC_CTX_new()); in resetContext()
240 final NativeRef.CMAC_CTX ctxLocal = ctx; in updateDirect()
246 final NativeRef.CMAC_CTX ctxLocal = ctx; in doFinal()
252 final NativeRef.CMAC_CTX ctxLocal = ctx; in engineUpdate()
DNativeRef.java62 static final class CMAC_CTX extends NativeRef { class in NativeRef
63 CMAC_CTX(long nativePointer) { in CMAC_CTX() method in NativeRef.CMAC_CTX
DNativeCrypto.java361 static native void CMAC_Init(NativeRef.CMAC_CTX ctx, byte[] key); in CMAC_Init()
363 static native void CMAC_Update(NativeRef.CMAC_CTX ctx, byte[] in, int inOffset, int inLength); in CMAC_Update()
365 static native void CMAC_UpdateDirect(NativeRef.CMAC_CTX ctx, long inPtr, int inLength); in CMAC_UpdateDirect()
367 static native byte[] CMAC_Final(NativeRef.CMAC_CTX ctx); in CMAC_Final()
/external/conscrypt/common/src/jni/main/cpp/conscrypt/
Dnative_crypto.cc3793 CMAC_CTX* cmacCtx = reinterpret_cast<CMAC_CTX*>(cmacCtxRef); in NativeCrypto_CMAC_CTX_free()
3804 CMAC_CTX* cmacCtx = fromContextObject<CMAC_CTX>(env, cmacCtxRef); in NativeCrypto_CMAC_Init()
3843 CMAC_CTX* cmacCtx = fromContextObject<CMAC_CTX>(env, cmacCtxRef); in NativeCrypto_CMAC_UpdateDirect()
3866 CMAC_CTX* cmacCtx = fromContextObject<CMAC_CTX>(env, cmacCtxRef); in NativeCrypto_CMAC_Update()
3896 CMAC_CTX* cmacCtx = fromContextObject<CMAC_CTX>(env, cmacCtxRef); in NativeCrypto_CMAC_Final()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_openssl.c1221 CMAC_CTX *ctx; in omac1_aes_vector()