'\" t .\" -*-nroff-*- .\" .\" Copyright (C) 1996-2000 Michael R. Elkins .\" Copyright (C) 1999-2000 Thomas Roessler .\" .\" This program is free software; you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by .\" the Free Software Foundation; either version 2 of the License, or .\" (at your option) any later version. .\" .\" This program is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public License .\" along with this program; if not, write to the Free Software .\" Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. .\" .TH muttrc 5 "May 2000" Unix "User Manuals" .SH NAME .PP muttrc \- Configuration file for the Mutt Mail User Agent .SH DESCRIPTION .PP A mutt configuration file consists of a series of \(lqcommands\(rq. Each line of the file may contain one or more commands. When multiple commands are used, they must be separated by a semicolon (\(lq\fB;\fP\(rq). .PP The hash mark, or pound sign (\(lq\fB#\fP\(rq), is used as a \(lqcomment\(rq character. You can use it to annotate your initialization file. All text after the comment character to the end of the line is ignored. .PP Single quotes (\(lq\fB'\fP\(rq) and double quotes (\(lq\fB"\fP\(rq) can be used to quote strings which contain spaces or other special characters. The difference between the two types of quotes is similar to that of many popular shell programs, namely that a single quote is used to specify a literal string (one that is not interpreted for shell variables or quoting with a backslash [see next paragraph]), while double quotes indicate a string for which should be evaluated. For example, backtics are evaluated inside of double quotes, but not for single quotes. .PP \fB\(rs\fP quotes the next character, just as in shells such as bash and zsh. For example, if want to put quotes (\(lq\fB"\fP\(rq) inside of a string, you can use \(lq\fB\(rs\fP\(rq to force the next character to be a literal instead of interpreted character. .PP \(lq\fB\(rs\(rs\fP\(rq means to insert a literal \(lq\fB\(rs\fP\(rq into the line. \(lq\fB\(rsn\fP\(rq and \(lq\fB\(rsr\fP\(rq have their usual C meanings of linefeed and carriage-return, respectively. .PP A \(lq\fB\(rs\fP\(rq at the end of a line can be used to split commands over multiple lines, provided that the split points don't appear in the middle of command names. .PP It is also possible to substitute the output of a Unix command in an initialization file. This is accomplished by enclosing the command in backquotes (\fB`\fP\fIcommand\fP\fB`\fP). .PP UNIX environments can be accessed like the way it is done in shells like sh and bash: Prepend the name of the environment by a dollar (\(lq\fB\(Do\fP\(rq) sign. .PP .SH COMMANDS .PP .nf \fBalias\fP \fIkey\fP \fIaddress\fP [\fB,\fP \fIaddress\fP [ ... ]] \fBunalias\fP \fIkey\fP .fi .IP \fBalias\fP defines an alias \fIkey\fP for the given addresses. \fBunalias\fP removes the alias corresponding to the given \fIkey\fP. .TP \fBalternative_order\fP \fItype\fP[\fB/\fP\fIsubtype\fP] [ ... ] This command permits you to define an order of preference which is used by mutt to determine which part of a \fBmultipart/alternative\fP body to display. A subtype of \(lq\fB*\fP\(rq matches any subtype, as does an empty subtype. .TP \fBauto_view\fP \fItype\fP[\fB/\fP\fIsubtype\fP] [ ... ] This commands permits you to specify that mutt should automatically convert the given MIME types to text/plain when displaying messages. For this to work, there must be a .BR mailcap (5) entry for the given MIME type with the .B copiousoutput flag set. A subtype of \(lq\fB*\fP\(rq matches any subtype, as does an empty subtype. .TP \fBbind\fP \fImap\fP \fIkey\fP \fIfunction\fP This command binds the given \fIkey\fP for the given \fImap\fP to the given \fIfunction\fP. .IP Valid maps are: .BR generic ", " alias ", " attach ", " .BR browser ", " editor ", " .BR index ", " compose ", " .BR pager ", " pgp ", " postpone ", " .BR mix . .IP For more information on keys and functions, please consult the Mutt Manual. .TP \fBcharset-hook\fP \fIalias\fP \fIcharset\fP This command defines an alias for a character set. This is useful to properly display messages which are tagged with a character set name not known to mutt. .TP \fBmessage-hook\fP [\fB!\fP]\fIpattern\fP \fIcommand\fP Before mutt displays (or formats for replying or forwarding) a message which matches the given \fIpattern\fP (or, when it is preceded by an exclamation mark, does not match the \fIpattern\fP), the given \fIcommand\fP is executed. When multiple \fBmessage-hook\fPs match, they are executed in the order in which they occur in the configuration file. .TP \fBfolder-hook\fP [\fB!\fP]\fIregexp\fP \fIcommand\fP When mutt enters a folder which matches \fIregexp\fP (or, when \fIregexp\fP is preceded by an exclamation mark, does not match \fIregexp\fP), the given \fIcommand\fP is executed. .IP When several \fBfolder-hook\fPs match a given mail folder, they are executed in the order given in the configuration file. .TP \fBmacro\fP \fImap\fP \fIkey\fP \fIsequence\fP [ \fIdescription\fP ] This command binds the given \fIsequence\fP of keys to the given \fIkey\fP in the given \fImap\fP. For valid maps, see \fBbind\fP. .PP .nf \fBcolor\fP \fIobject\fP \fIforeground\fP \fIbackground\fP [ \fI regexp\fP ] \fBcolor\fP index \fIforeground\fP \fIbackground\fP [ \fI pattern\fP ] \fBuncolor\fP index \fIpattern\fP [ \fIpattern\fP ... ] .fi .IP If your terminal supports color, these commands can be used to assign \fIforeground\fP/\fIbackgound\fP combinations to certain objects. Valid objects are: .BR attachment ", " body ", " bold ", " header ", " .BR hdrdefault ", " index ", " indicator ", " markers ", "
/*
 * Copyright 2008-2020 The OpenSSL Project Authors. All Rights Reserved.
 *
 * Licensed under the Apache License 2.0 (the "License").  You may not use
 * this file except in compliance with the License.  You can obtain a copy
 * in the file LICENSE in the source distribution or at
 * https://www.openssl.org/source/license.html
 */

/*
 * AES_encrypt/AES_decrypt are deprecated - but we need to use them to implement
 * these functions
 */
#include "internal/deprecated.h"

#include "internal/cryptlib.h"
#include <openssl/aes.h>
#include <openssl/modes.h>

int AES_wrap_key(AES_KEY *key, const unsigned char *iv,
                 unsigned char *out,
                 const unsigned char *in, unsigned int inlen)
{
    return CRYPTO_128_wrap(key, iv, out, in, inlen, (block128_f) AES_encrypt);
}

int AES_unwrap_key(AES_KEY *key, const unsigned char *iv,
                   unsigned char *out,
                   const unsigned char *in, unsigned int inlen)
{
    return CRYPTO_128_unwrap(key, iv, out, in, inlen,
                             (block128_f) AES_decrypt);
}
time, an offset which begins with the character .B < matches dates which are more recent than the specified amount of time, and an offset which begins with the character .B = matches points of time which are precisely the given amount of time ago. .SH CONFIGURATION VARIABLES