Lines Matching defs:arg
496 static int chacha20_poly1305_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg,
538 if (arg <= 0 || arg > CHACHA20_POLY1305_MAX_IVLEN)
540 actx->nonce_len = arg;
544 if (arg != 12)
555 if (arg <= 0 || arg > POLY1305_BLOCK_SIZE)
558 memcpy(actx->tag, ptr, arg);
559 actx->tag_len = arg;
564 if (arg <= 0 || arg > POLY1305_BLOCK_SIZE || !ctx->encrypt)
566 memcpy(ptr, actx->tag, arg);
570 if (arg != EVP_AEAD_TLS1_AAD_LEN)