Lines Matching defs:mode

192   int mode;
206 unsigned char ctr[MAX_BLOCKSIZE]; /* For Counter (CTR) mode. */
383 /* We do not support module loading in fips mode. */
490 function returns the cipher mode (GCRY_CIPHER_MODE_*) associated
491 with that OID or 0 if no mode is known. Passing NULL for string
497 int ret = 0, mode = 0;
505 mode = oid_spec.mode;
508 return mode;
657 the cipher mode MODE (one of the GCRY_CIPHER_MODE_*) and return a
664 GCRY_CIPHER_CBC_CTS: Enable CTS mode.
665 GCRY_CIPHER_CBC_MAC: Enable MAC mode.
671 int algo, int mode, unsigned int flags)
720 /* check that a valid mode has been requested */
722 switch (mode)
741 /* This mode may be used for debugging. It copies the main
743 fips mode or if no debug flag has been set. */
796 h->mode = mode;
1397 * Encrypt INBUF to OUTBUF with the mode selected at open.
1399 * Depending on the mode some contraints apply to NBYTES.
1407 switch( c->mode ) {
1438 fips_signal_error ("cipher mode NONE used");
1448 log_fatal("cipher_encrypt: invalid mode %d\n", c->mode );
1476 else if ((h->mode == GCRY_CIPHER_MODE_ECB
1477 || (h->mode == GCRY_CIPHER_MODE_CBC
1496 * Decrypt INBUF to OUTBUF with the mode selected at open.
1498 * Depending on the mode some some contraints apply to NBYTES.
1506 switch( c->mode ) {
1537 fips_signal_error ("cipher mode NONE used");
1547 log_fatal ("cipher_decrypt: invalid mode %d\n", c->mode );
1570 else if (((h->mode == GCRY_CIPHER_MODE_ECB)
1571 || ((h->mode == GCRY_CIPHER_MODE_CBC)
1585 * Used for PGP's somewhat strange CFB mode. Only works if
1616 /* Set counter for CTR mode. (CTR,CTRLEN) must denote a buffer of
1701 /* This is the input block as used in CFB and OFB mode which has