Searched refs:cc_require (Results 1 – 4 of 4) sorted by relevance
| /xnu-11215.1.10/osfmk/corecrypto/ |
| H A D | ccgcm.c | 106 cc_require(_CCMODE_GCM_KEY(ctx)->state == CCMODE_GCM_STATE_IV, errOut); in ccgcm_inc_iv() 107 cc_require(_CCMODE_GCM_KEY(ctx)->flags & CCGCM_FLAGS_INIT_WITH_IV, errOut); in ccgcm_inc_iv() 190 rc = ccgcm_init(mode, ctx, key_nbytes, key); cc_require(rc == 0, errOut); in ccgcm_one_shot() 191 rc = ccgcm_set_iv(mode, ctx, iv_nbytes, iv); cc_require(rc == 0, errOut); in ccgcm_one_shot() 192 rc = ccgcm_aad(mode, ctx, adata_nbytes, adata); cc_require(rc == 0, errOut); in ccgcm_one_shot() 193 rc = ccgcm_update(mode, ctx, nbytes, in, out); cc_require(rc == 0, errOut); in ccgcm_one_shot() 194 rc = ccgcm_finalize(mode, ctx, tag_nbytes, tag); cc_require(rc == 0, errOut); in ccgcm_one_shot() 216 cc_require(_CCMODE_GCM_KEY(key)->state == CCMODE_GCM_STATE_IV, errOut); /* CRYPT_INVALID_ARG */ in ccgcm_set_iv_legacy() 246 rc = ccgcm_init(mode, ctx, key_nbytes, key); cc_require(rc == 0, errOut); in ccgcm_one_shot_legacy() 247 rc = ccgcm_set_iv_legacy(mode, ctx, iv_nbytes, iv); cc_require(rc == 0, errOut); in ccgcm_one_shot_legacy() [all …]
|
| H A D | ccdrbg_nisthmac.c | 158 cc_require(outlen <= DRBG_HMAC_MAX_OUTPUT_SIZE, out); in init() 159 cc_require(entropy_isvalid(entropy_nbytes, digest_info), out); in init() 160 cc_require(ps_nbytes <= CCDRBG_MAX_PSINPUT_SIZE, out); in init() 189 cc_require(entropy_isvalid(entropy_nbytes, digest_info), out); in reseed() 190 cc_require(add_isvalid(add_nbytes), out); in reseed() 220 cc_require(out_nbytes <= CCDRBG_MAX_REQUEST_SIZE, out); in generate() 221 cc_require(add_isvalid(add_nbytes), out); in generate() 224 cc_require(!must_reseed(ctx), out); in generate()
|
| H A D | cc_macros.h | 75 #ifndef cc_require 78 #define cc_require(assertion, exceptionLabel) \ macro 85 #define cc_require(assertion, exceptionLabel) \ macro 93 #define cc_require(assertion, exceptionLabel) \ macro
|
| /xnu-11215.1.10/EXTERNAL_HEADERS/corecrypto/ |
| H A D | cc_macros.h | 47 #ifndef cc_require 50 #define cc_require(assertion, exceptionLabel) \ macro 57 #define cc_require(assertion, exceptionLabel) \ macro 65 #define cc_require(assertion, exceptionLabel) \ macro
|