Lines Matching defs:mode
44 const int mode = EVP_CIPHER_mode(params.cipher);
48 if (mode == EVP_CIPH_WRAP_MODE)
64 if (mode == EVP_CIPH_GCM_MODE && !EVP_CIPHER_CTX_ctrl(
87 if (mode == EVP_CIPH_GCM_MODE) {
90 // If in decrypt mode, the auth tag must be set in the params.tag.
100 // In decrypt mode, we grab the tag length here. We'll use it to
116 if (mode == EVP_CIPH_GCM_MODE &&
130 // ubi81_sharedlibs_openssl111fips_x64) may be used in sharedlib mode, the
158 if (cipher_mode == kWebCryptoCipherEncrypt && mode == EVP_CIPH_GCM_MODE) {
347 CryptoJobMode mode,
355 params->iv = (mode == kCryptoJobAsync)
378 CryptoJobMode mode,
393 params->tag = mode == kCryptoJobAsync
418 CryptoJobMode mode,
428 params->additional_data = mode == kCryptoJobAsync
441 : mode(other.mode),
456 // If mode is sync, then the data in each of these properties
458 if (mode == kCryptoJobAsync) {
466 CryptoJobMode mode,
473 params->mode = mode;
483 if (!ValidateIV(env, mode, args[offset + 1], params) ||
490 if (!ValidateIV(env, mode, args[offset + 1], params) ||
497 if (!ValidateIV(env, mode, args[offset + 1], params) ||
504 if (!ValidateIV(env, mode, args[offset + 1], params))
509 if (!ValidateIV(env, mode, args[offset + 1], params))
514 if (!ValidateIV(env, mode, args[offset + 1], params))
531 if (!ValidateIV(env, mode, args[offset + 1], params) ||
532 !ValidateAuthTag(env, mode, cipher_mode, args[offset + 2], params) ||
533 !ValidateAdditionalData(env, mode, args[offset + 3], params)) {
539 if (!ValidateIV(env, mode, args[offset + 1], params) ||
540 !ValidateAuthTag(env, mode, cipher_mode, args[offset + 2], params) ||
541 !ValidateAdditionalData(env, mode, args[offset + 3], params)) {
547 if (!ValidateIV(env, mode, args[offset + 1], params) ||
548 !ValidateAuthTag(env, mode, cipher_mode, args[offset + 2], params) ||
549 !ValidateAdditionalData(env, mode, args[offset + 3], params)) {