Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nettle
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
3
Merge Requests
3
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Nettle
nettle
Commits
90112edb
Commit
90112edb
authored
Mar 30, 2014
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update copyright headers for dual licensing.
parent
b08824a9
Changes
317
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
317 changed files
with
9776 additions
and
7154 deletions
+9776
-7154
aes-decrypt-internal.c
aes-decrypt-internal.c
+31
-23
aes-decrypt.c
aes-decrypt.c
+30
-22
aes-encrypt-internal.c
aes-encrypt-internal.c
+30
-22
aes-encrypt-table.c
aes-encrypt-table.c
+30
-22
aes-encrypt.c
aes-encrypt.c
+31
-23
aes-internal.h
aes-internal.h
+31
-23
aes-invert-internal.c
aes-invert-internal.c
+32
-24
aes-set-decrypt-key.c
aes-set-decrypt-key.c
+32
-26
aes-set-encrypt-key.c
aes-set-encrypt-key.c
+32
-26
aes-set-key-internal.c
aes-set-key-internal.c
+32
-24
aes.h
aes.h
+31
-23
aes128-meta.c
aes128-meta.c
+30
-21
aes128-set-decrypt-key.c
aes128-set-decrypt-key.c
+31
-23
aes128-set-encrypt-key.c
aes128-set-encrypt-key.c
+29
-23
aes192-meta.c
aes192-meta.c
+30
-21
aes192-set-decrypt-key.c
aes192-set-decrypt-key.c
+29
-23
aes192-set-encrypt-key.c
aes192-set-encrypt-key.c
+29
-23
aes256-meta.c
aes256-meta.c
+30
-21
aes256-set-decrypt-key.c
aes256-set-decrypt-key.c
+29
-23
aes256-set-encrypt-key.c
aes256-set-encrypt-key.c
+29
-23
arcfour-crypt.c
arcfour-crypt.c
+31
-23
arcfour.c
arcfour.c
+31
-23
arcfour.h
arcfour.h
+31
-23
arctwo-meta.c
arctwo-meta.c
+31
-22
arctwo.c
arctwo.c
+33
-25
arctwo.h
arctwo.h
+32
-24
asn1.h
asn1.h
+31
-23
base16-decode.c
base16-decode.c
+31
-23
base16-encode.c
base16-encode.c
+31
-23
base16-meta.c
base16-meta.c
+30
-21
base16.h
base16.h
+32
-24
base64-decode.c
base64-decode.c
+29
-22
base64-encode.c
base64-encode.c
+29
-22
base64-meta.c
base64-meta.c
+30
-21
base64.h
base64.h
+31
-23
bignum-next-prime.c
bignum-next-prime.c
+29
-22
bignum-random-prime.c
bignum-random-prime.c
+31
-23
bignum-random.c
bignum-random.c
+31
-23
bignum.c
bignum.c
+30
-22
bignum.h
bignum.h
+31
-23
blowfish.c
blowfish.c
+35
-26
blowfish.h
blowfish.h
+32
-24
buffer-init.c
buffer-init.c
+29
-22
buffer.c
buffer.c
+31
-23
buffer.h
buffer.h
+31
-23
camellia-absorb.c
camellia-absorb.c
+34
-23
camellia-crypt-internal.c
camellia-crypt-internal.c
+32
-20
camellia-internal.h
camellia-internal.h
+33
-22
camellia-invert-key.c
camellia-invert-key.c
+31
-23
camellia-table.c
camellia-table.c
+33
-22
camellia.h
camellia.h
+32
-20
camellia128-crypt.c
camellia128-crypt.c
+31
-23
camellia128-meta.c
camellia128-meta.c
+30
-21
camellia128-set-decrypt-key.c
camellia128-set-decrypt-key.c
+31
-23
camellia128-set-encrypt-key.c
camellia128-set-encrypt-key.c
+34
-23
camellia192-meta.c
camellia192-meta.c
+30
-21
camellia256-crypt.c
camellia256-crypt.c
+31
-23
camellia256-meta.c
camellia256-meta.c
+30
-21
camellia256-set-decrypt-key.c
camellia256-set-decrypt-key.c
+31
-23
camellia256-set-encrypt-key.c
camellia256-set-encrypt-key.c
+34
-23
cast128-meta.c
cast128-meta.c
+30
-21
cast128.c
cast128.c
+34
-24
cast128.h
cast128.h
+31
-29
cbc.c
cbc.c
+31
-23
cbc.h
cbc.h
+31
-23
ccm-aes128.c
ccm-aes128.c
+32
-24
ccm-aes192.c
ccm-aes192.c
+32
-24
ccm-aes256.c
ccm-aes256.c
+32
-24
ccm.c
ccm.c
+32
-25
ccm.h
ccm.h
+40
-30
chacha-core-internal.c
chacha-core-internal.c
+33
-26
chacha-crypt.c
chacha-crypt.c
+34
-26
chacha-poly1305-meta.c
chacha-poly1305-meta.c
+30
-21
chacha-poly1305.c
chacha-poly1305.c
+31
-23
chacha-poly1305.h
chacha-poly1305.h
+32
-24
chacha-set-key.c
chacha-set-key.c
+29
-18
chacha-set-nonce.c
chacha-set-nonce.c
+34
-26
chacha.h
chacha.h
+33
-26
cnd-copy.c
cnd-copy.c
+30
-21
ctr.c
ctr.c
+31
-23
ctr.h
ctr.h
+32
-24
der-iterator.c
der-iterator.c
+31
-23
der2dsa.c
der2dsa.c
+32
-24
der2rsa.c
der2rsa.c
+31
-23
des-compat.c
des-compat.c
+30
-22
des-compat.h
des-compat.h
+31
-23
des.c
des.c
+31
-23
des.h
des.h
+31
-22
des3.c
des3.c
+31
-23
dsa-compat-keygen.c
dsa-compat-keygen.c
+31
-23
dsa-compat.c
dsa-compat.c
+31
-24
dsa-compat.h
dsa-compat.h
+30
-22
dsa-gen-params.c
dsa-gen-params.c
+31
-23
dsa-hash.c
dsa-hash.c
+30
-21
dsa-keygen.c
dsa-keygen.c
+31
-23
dsa-sha1-sign.c
dsa-sha1-sign.c
+31
-23
dsa-sha1-verify.c
dsa-sha1-verify.c
+31
-23
dsa-sha256-sign.c
dsa-sha256-sign.c
+31
-23
dsa-sha256-verify.c
dsa-sha256-verify.c
+31
-23
dsa-sign.c
dsa-sign.c
+31
-23
dsa-verify.c
dsa-verify.c
+31
-23
dsa.c
dsa.c
+31
-23
dsa.h
dsa.h
+31
-23
dsa2sexp.c
dsa2sexp.c
+29
-22
eax-aes128-meta.c
eax-aes128-meta.c
+29
-21
eax-aes128.c
eax-aes128.c
+29
-21
eax.c
eax.c
+31
-23
eax.h
eax.h
+31
-23
ecc-192.c
ecc-192.c
+32
-23
ecc-224.c
ecc-224.c
+32
-23
ecc-256.c
ecc-256.c
+32
-23
ecc-384.c
ecc-384.c
+32
-23
ecc-521.c
ecc-521.c
+32
-23
ecc-a-to-j.c
ecc-a-to-j.c
+30
-21
ecc-add-jja.c
ecc-add-jja.c
+30
-21
ecc-add-jjj.c
ecc-add-jjj.c
+30
-21
ecc-curve.h
ecc-curve.h
+30
-21
ecc-dup-jj.c
ecc-dup-jj.c
+30
-21
ecc-ecdsa-sign.c
ecc-ecdsa-sign.c
+30
-21
ecc-ecdsa-verify.c
ecc-ecdsa-verify.c
+30
-21
ecc-generic-modp.c
ecc-generic-modp.c
+30
-21
ecc-generic-modq.c
ecc-generic-modq.c
+30
-21
ecc-generic-redc.c
ecc-generic-redc.c
+29
-20
ecc-hash.c
ecc-hash.c
+30
-21
ecc-internal.h
ecc-internal.h
+30
-21
ecc-j-to-a.c
ecc-j-to-a.c
+30
-21
ecc-mod.c
ecc-mod.c
+30
-21
ecc-modp.c
ecc-modp.c
+30
-21
ecc-modq.c
ecc-modq.c
+30
-21
ecc-mul-a.c
ecc-mul-a.c
+30
-21
ecc-mul-g.c
ecc-mul-g.c
+30
-21
ecc-point-mul-g.c
ecc-point-mul-g.c
+30
-21
ecc-point-mul.c
ecc-point-mul.c
+30
-21
ecc-point.c
ecc-point.c
+30
-21
ecc-random.c
ecc-random.c
+30
-21
ecc-scalar.c
ecc-scalar.c
+30
-21
ecc-size.c
ecc-size.c
+30
-21
ecc.h
ecc.h
+30
-21
eccdata.c
eccdata.c
+32
-23
ecdsa-keygen.c
ecdsa-keygen.c
+30
-21
ecdsa-sign.c
ecdsa-sign.c
+30
-21
ecdsa-verify.c
ecdsa-verify.c
+30
-21
ecdsa.h
ecdsa.h
+29
-20
gcm-aes.c
gcm-aes.c
+31
-23
gcm-aes128-meta.c
gcm-aes128-meta.c
+30
-21
gcm-aes128.c
gcm-aes128.c
+31
-23
gcm-aes192-meta.c
gcm-aes192-meta.c
+30
-21
gcm-aes192.c
gcm-aes192.c
+31
-23
gcm-aes256-meta.c
gcm-aes256-meta.c
+30
-21
gcm-aes256.c
gcm-aes256.c
+31
-23
gcm-camellia128-meta.c
gcm-camellia128-meta.c
+30
-21
gcm-camellia128.c
gcm-camellia128.c
+29
-21
gcm-camellia256-meta.c
gcm-camellia256-meta.c
+30
-21
gcm-camellia256.c
gcm-camellia256.c
+29
-21
gcm.c
gcm.c
+37
-29
gcm.h
gcm.h
+35
-28
gcmdata.c
gcmdata.c
+34
-27
gmp-glue.c
gmp-glue.c
+31
-22
gmp-glue.h
gmp-glue.h
+31
-22
gosthash94-meta.c
gosthash94-meta.c
+30
-21
gosthash94.h
gosthash94.h
+31
-23
hmac-md5.c
hmac-md5.c
+31
-23
hmac-ripemd160.c
hmac-ripemd160.c
+31
-23
hmac-sha1.c
hmac-sha1.c
+31
-23
hmac-sha224.c
hmac-sha224.c
+31
-23
hmac-sha256.c
hmac-sha256.c
+31
-23
hmac-sha384.c
hmac-sha384.c
+31
-23
hmac-sha512.c
hmac-sha512.c
+31
-23
hmac.c
hmac.c
+31
-23
hmac.h
hmac.h
+31
-23
knuth-lfib.c
knuth-lfib.c
+40
-27
knuth-lfib.h
knuth-lfib.h
+30
-25
macros.h
macros.h
+29
-22
md2-meta.c
md2-meta.c
+30
-21
md2.c
md2.c
+32
-24
md2.h
md2.h
+31
-23
md4-meta.c
md4-meta.c
+30
-21
md4.c
md4.c
+31
-23
md4.h
md4.h
+32
-24
md5-compat.c
md5-compat.c
+31
-23
md5-compat.h
md5-compat.h
+31
-23
md5-compress.c
md5-compress.c
+30
-23
md5-meta.c
md5-meta.c
+30
-21
md5.c
md5.c
+31
-23
md5.h
md5.h
+31
-23
memxor.c
memxor.c
+28
-22
nettle-internal.c
nettle-internal.c
+32
-24
nettle-internal.h
nettle-internal.h
+32
-24
nettle-meta-armors.c
nettle-meta-armors.c
+30
-21
nettle-meta-ciphers.c
nettle-meta-ciphers.c
+30
-21
nettle-meta-hashes.c
nettle-meta-hashes.c
+30
-21
nettle-meta.h
nettle-meta.h
+31
-23
nettle-types.h
nettle-types.h
+30
-21
nettle-write.h
nettle-write.h
+31
-23
pbkdf2-hmac-sha1.c
pbkdf2-hmac-sha1.c
+31
-23
pbkdf2-hmac-sha256.c
pbkdf2-hmac-sha256.c
+31
-23
pbkdf2.c
pbkdf2.c
+31
-23
pbkdf2.h
pbkdf2.h
+31
-23
pgp-encode.c
pgp-encode.c
+31
-23
pgp.h
pgp.h
+31
-23
pkcs1-decrypt.c
pkcs1-decrypt.c
+31
-22
pkcs1-encrypt.c
pkcs1-encrypt.c
+31
-23
pkcs1-rsa-digest.c
pkcs1-rsa-digest.c
+29
-22
pkcs1-rsa-md5.c
pkcs1-rsa-md5.c
+30
-22
pkcs1-rsa-sha1.c
pkcs1-rsa-sha1.c
+30
-22
pkcs1-rsa-sha256.c
pkcs1-rsa-sha256.c
+30
-22
pkcs1-rsa-sha512.c
pkcs1-rsa-sha512.c
+30
-22
pkcs1.c
pkcs1.c
+30
-22
pkcs1.h
pkcs1.h
+31
-23
poly1305-aes.c
poly1305-aes.c
+31
-20
poly1305-internal.c
poly1305-internal.c
+35
-8
poly1305.h
poly1305.h
+32
-24
realloc.c
realloc.c
+29
-22
realloc.h
realloc.h
+29
-22
ripemd160-compress.c
ripemd160-compress.c
+33
-20
ripemd160-meta.c
ripemd160-meta.c
+30
-21
ripemd160.c
ripemd160.c
+32
-21
ripemd160.h
ripemd160.h
+31
-23
rsa-blind.c
rsa-blind.c
+31
-23
rsa-compat.c
rsa-compat.c
+31
-23
rsa-compat.h
rsa-compat.h
+31
-23
rsa-decrypt-tr.c
rsa-decrypt-tr.c
+32
-24
rsa-decrypt.c
rsa-decrypt.c
+31
-23
rsa-encrypt.c
rsa-encrypt.c
+31
-23
rsa-keygen.c
rsa-keygen.c
+31
-23
rsa-md5-sign.c
rsa-md5-sign.c
+31
-23
rsa-md5-verify.c
rsa-md5-verify.c
+31
-23
rsa-pkcs1-sign-tr.c
rsa-pkcs1-sign-tr.c
+31
-23
rsa-pkcs1-sign.c
rsa-pkcs1-sign.c
+31
-23
rsa-pkcs1-verify.c
rsa-pkcs1-verify.c
+31
-23
rsa-sha1-sign.c
rsa-sha1-sign.c
+31
-23
rsa-sha1-verify.c
rsa-sha1-verify.c
+31
-23
rsa-sha256-sign.c
rsa-sha256-sign.c
+31
-23
rsa-sha256-verify.c
rsa-sha256-verify.c
+31
-23
rsa-sha512-sign.c
rsa-sha512-sign.c
+31
-23
rsa-sha512-verify.c
rsa-sha512-verify.c
+31
-23
rsa-sign.c
rsa-sign.c
+31
-23
rsa-verify.c
rsa-verify.c
+31
-23
rsa.c
rsa.c
+31
-23
rsa.h
rsa.h
+30
-22
rsa2openpgp.c
rsa2openpgp.c
+30
-22
rsa2sexp.c
rsa2sexp.c
+29
-22
salsa20-128-set-key.c
salsa20-128-set-key.c
+33
-24
salsa20-256-set-key.c
salsa20-256-set-key.c
+33
-24
salsa20-core-internal.c
salsa20-core-internal.c
+31
-23
salsa20-crypt.c
salsa20-crypt.c
+31
-23
salsa20-set-key.c
salsa20-set-key.c
+31
-23
salsa20-set-nonce.c
salsa20-set-nonce.c
+31
-23
salsa20.h
salsa20.h
+32
-24
salsa20r12-crypt.c
salsa20r12-crypt.c
+31
-23
sec-add-1.c
sec-add-1.c
+30
-21
sec-modinv.c
sec-modinv.c
+30
-21
sec-sub-1.c
sec-sub-1.c
+30
-21
sec-tabselect.c
sec-tabselect.c
+30
-21
serpent-decrypt.c
serpent-decrypt.c
+35
-27
serpent-encrypt.c
serpent-encrypt.c
+36
-28
serpent-internal.h
serpent-internal.h
+36
-28
serpent-meta.c
serpent-meta.c
+30
-21
serpent-set-key.c
serpent-set-key.c
+36
-28
serpent.h
serpent.h
+30
-22
sexp-format.c
sexp-format.c
+31
-23
sexp-transport-format.c
sexp-transport-format.c
+31
-23
sexp-transport.c
sexp-transport.c
+31
-23
sexp.c
sexp.c
+31
-23
sexp.h
sexp.h
+29
-22
sexp2bignum.c
sexp2bignum.c
+29
-22
sexp2dsa.c
sexp2dsa.c
+28
-21
sexp2rsa.c
sexp2rsa.c
+28
-21
sha.h
sha.h
+33
-25
sha1-compress.c
sha1-compress.c
+30
-22
sha1-meta.c
sha1-meta.c
+30
-21
sha1.c
sha1.c
+32
-36
sha1.h
sha1.h
+31
-23
sha2.h
sha2.h
+31
-23
sha224-meta.c
sha224-meta.c
+30
-21
sha256-compress.c
sha256-compress.c
+31
-23
sha256-meta.c
sha256-meta.c
+30
-21
sha256.c
sha256.c
+32
-25
sha3-224-meta.c
sha3-224-meta.c
+30
-21
sha3-224.c
sha3-224.c
+31
-23
sha3-256-meta.c
sha3-256-meta.c
+30
-21
sha3-256.c
sha3-256.c
+31
-23
sha3-384-meta.c
sha3-384-meta.c
+30
-21
sha3-384.c
sha3-384.c
+31
-23
sha3-512-meta.c
sha3-512-meta.c
+30
-21
sha3-512.c
sha3-512.c
+31
-23
sha3-permute.c
sha3-permute.c
+31
-23
sha3.c
sha3.c
+31
-23
sha3.h
sha3.h
+31
-23
sha384-meta.c
sha384-meta.c
+30
-21
sha512-224-meta.c
sha512-224-meta.c
+30
-21
sha512-256-meta.c
sha512-256-meta.c
+30
-21
sha512-compress.c
sha512-compress.c
+31
-23
sha512-meta.c
sha512-meta.c
+30
-21
sha512.c
sha512.c
+33
-26
twofish-meta.c
twofish-meta.c
+30
-21
twofish.c
twofish.c
+33
-29
twofish.h
twofish.h
+30
-22
twofishdata.c
twofishdata.c
+20
-17
umac-l2.c
umac-l2.c
+29
-21
umac-l3.c
umac-l3.c
+29
-21
umac-nh-n.c
umac-nh-n.c
+29
-21
umac-nh.c
umac-nh.c
+29
-21
umac-poly128.c
umac-poly128.c
+29
-21
umac-poly64.c
umac-poly64.c
+29
-21
umac-set-key.c
umac-set-key.c
+29
-21
umac.h
umac.h
+31
-23
umac128.c
umac128.c
+29
-21
umac32.c
umac32.c
+29
-21
umac64.c
umac64.c
+29
-21
umac96.c
umac96.c
+29
-21
write-be32.c
write-be32.c
+30
-21
write-le32.c
write-le32.c
+30
-21
write-le64.c
write-le64.c
+30
-21
yarrow.h
yarrow.h
+31
-23
yarrow256.c
yarrow256.c
+31
-23
yarrow_key_event.c
yarrow_key_event.c
+31
-22
No files found.
aes-decrypt-internal.c
View file @
90112edb
/* aes-decrypt-internal.c
*
* Decryption function for the aes/rijndael block cipher.
*/
/* nettle, low-level cryptographics library
*
* Copyright (C) 2002, 2013 Niels Möller
*
* The nettle library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or (at your
* option) any later version.
*
* The nettle library 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 Lesser General Public
* License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with the nettle library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02111-1301, USA.
*/
Decryption function for the aes/rijndael block cipher.
Copyright 2002, 2013 Niels Möller
This file is part of GNU Nettle.
GNU Nettle is free software: you can redistribute it and/or
modify it under the terms of either:
* the GNU Lesser General Public License as published by the Free
Software Foundation; either version 3 of the License, or (at your
option) any later version.
or
* 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.
or both in parallel, as here.
GNU Nettle 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 copies of the GNU General Public License and
the GNU Lesser General Public License along with this program. If
not, see http://www.gnu.org/licenses/.
*/
#if HAVE_CONFIG_H
# include "config.h"
...
...
aes-decrypt.c
View file @
90112edb
/* aes-decrypt.c
*
* Decryption function for aes/rijndael block cipher.
*/
/* nettle, low-level cryptographics library
*
* Copyright (C) 2002, 2013 Niels Möller
*
* The nettle library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or (at your
* option) any later version.
*
* The nettle library 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 Lesser General Public
* License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with the nettle library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02111-1301, USA.
*/
Decryption function for aes/rijndael block cipher.
Copyright (C) 2002, 2013 Niels Möller
This file is part of GNU Nettle.
GNU Nettle is free software: you can redistribute it and/or
modify it under the terms of either:
* the GNU Lesser General Public License as published by the Free
Software Foundation; either version 3 of the License, or (at your
option) any later version.
or
* 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.
or both in parallel, as here.
GNU Nettle 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 copies of the GNU General Public License and
the GNU Lesser General Public License along with this program. If
not, see http://www.gnu.org/licenses/.
*/
#if HAVE_CONFIG_H
# include "config.h"
...
...
aes-encrypt-internal.c
View file @
90112edb
/* aes-encrypt-internal.c
*
* Encryption function for the aes/rijndael block cipher.
*/
/* nettle, low-level cryptographics library
*
* Copyright (C) 2002, 2013 Niels Möller
*
* The nettle library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or (at your
* option) any later version.
*
* The nettle library 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 Lesser General Public
* License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with the nettle library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02111-1301, USA.
*/
Encryption function for the aes/rijndael block cipher.
Copyright (C) 2002, 2013 Niels Möller
This file is part of GNU Nettle.
GNU Nettle is free software: you can redistribute it and/or
modify it under the terms of either:
* the GNU Lesser General Public License as published by the Free
Software Foundation; either version 3 of the License, or (at your
option) any later version.
or
* 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.
or both in parallel, as here.
GNU Nettle 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 copies of the GNU General Public License and
the GNU Lesser General Public License along with this program. If
not, see http://www.gnu.org/licenses/.
*/
#if HAVE_CONFIG_H
# include "config.h"
...
...
aes-encrypt-table.c
View file @
90112edb
/* aes-encrypt-table.c
*
* Encryption table for the aes/rijndael block cipher.
*/
/* nettle, low-level cryptographics library
*
* Copyright (C) 2002 Niels Möller
*
* The nettle library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or (at your
* option) any later version.
*
* The nettle library 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 Lesser General Public
* License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with the nettle library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02111-1301, USA.
*/
Encryption table for the aes/rijndael block cipher.
Copyright (C) 2002 Niels Möller
This file is part of GNU Nettle.
GNU Nettle is free software: you can redistribute it and/or
modify it under the terms of either:
* the GNU Lesser General Public License as published by the Free
Software Foundation; either version 3 of the License, or (at your
option) any later version.
or
* 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.
or both in parallel, as here.
GNU Nettle 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 copies of the GNU General Public License and
the GNU Lesser General Public License along with this program. If
not, see http://www.gnu.org/licenses/.
*/
#if HAVE_CONFIG_H
# include "config.h"
...
...
aes-encrypt.c
View file @
90112edb
/* aes-encrypt.c
*
* Encryption function for the aes/rijndael block cipher.
*/
/* nettle, low-level cryptographics library
*
* Copyright (C) 2002, 2013 Niels Möller
*
* The nettle library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or (at your
* option) any later version.
*
* The nettle library 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 Lesser General Public
* License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with the nettle library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02111-1301, USA.
*/
Encryption function for the aes/rijndael block cipher.
Copyright (C) 2002, 2013 Niels Möller
This file is part of GNU Nettle.
GNU Nettle is free software: you can redistribute it and/or
modify it under the terms of either:
* the GNU Lesser General Public License as published by the Free
Software Foundation; either version 3 of the License, or (at your
option) any later version.
or
* 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.
or both in parallel, as here.
GNU Nettle 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 copies of the GNU General Public License and
the GNU Lesser General Public License along with this program. If
not, see http://www.gnu.org/licenses/.
*/
#if HAVE_CONFIG_H
# include "config.h"
...
...
aes-internal.h
View file @
90112edb
/* aes-internal.h
*
* The aes/rijndael block cipher.
*/
/* nettle, low-level cryptographics library
*
* Copyright (C) 2001, 2013 Niels Möller
*
* The nettle library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or (at your
* option) any later version.
*
* The nettle library 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 Lesser General Public
* License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with the nettle library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02111-1301, USA.
*/
The aes/rijndael block cipher.
Copyright (C) 2001, 2013 Niels Möller
This file is part of GNU Nettle.
GNU Nettle is free software: you can redistribute it and/or
modify it under the terms of either:
* the GNU Lesser General Public License as published by the Free
Software Foundation; either version 3 of the License, or (at your
option) any later version.
or
* 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.
or both in parallel, as here.
GNU Nettle 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 copies of the GNU General Public License and
the GNU Lesser General Public License along with this program. If
not, see http://www.gnu.org/licenses/.
*/
#ifndef NETTLE_AES_INTERNAL_H_INCLUDED
#define NETTLE_AES_INTERNAL_H_INCLUDED
...
...
aes-invert-internal.c
View file @
90112edb
/* aes-invert-internal.c
*
* Inverse key setup for the aes/rijndael block cipher.
*/
/* nettle, low-level cryptographics library
*
* Copyright (C) 2000, 2001, 2002, Rafael R. Sevilla, Niels Möller
* Copyright (C) 2013 Niels Möller
*
* The nettle library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or (at your
* option) any later version.
*
* The nettle library 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 Lesser General Public
* License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with the nettle library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02111-1301, USA.
*/
Inverse key setup for the aes/rijndael block cipher.
Copyright (C) 2000, 2001, 2002 Rafael R. Sevilla, Niels Möller
Copyright (C) 2013 Niels Möller
This file is part of GNU Nettle.
GNU Nettle is free software: you can redistribute it and/or
modify it under the terms of either:
* the GNU Lesser General Public License as published by the Free
Software Foundation; either version 3 of the License, or (at your
option) any later version.
or
* 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.
or both in parallel, as here.
GNU Nettle 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 copies of the GNU General Public License and
the GNU Lesser General Public License along with this program. If
not, see http://www.gnu.org/licenses/.
*/
/* Originally written by Rafael R. Sevilla <dido@pacific.net.ph> */
...
...
aes-set-decrypt-key.c
View file @
90112edb
/* aes-set-decrypt-key.c
*
* Inverse key setup for the aes/rijndael block cipher.
*/
/* nettle, low-level cryptographics library
*
* Copyright (C) 2000, 2001, 2002 Rafael R. Sevilla, Niels Möller
* Copyright (C) 2013 Niels Möller
*
* The nettle library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or (at your
* option) any later version.
*
* The nettle library 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 Lesser General Public
* License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with the nettle library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02111-1301, USA.
*/
/* Originally written by Rafael R. Sevilla <dido@pacific.net.ph> */
Inverse key setup for the aes/rijndael block cipher.
Copyright (C) 2000, 2001, 2002 Rafael R. Sevilla, Niels Möller
Copyright (C) 2013 Niels Möller
This file is part of GNU Nettle.
GNU Nettle is free software: you can redistribute it and/or
modify it under the terms of either:
* the GNU Lesser General Public License as published by the Free
Software Foundation; either version 3 of the License, or (at your
option) any later version.
or
* 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.
or both in parallel, as here.
GNU Nettle 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 copies of the GNU General Public License and
the GNU Lesser General Public License along with this program. If
not, see http://www.gnu.org/licenses/.
*/
#if HAVE_CONFIG_H
# include "config.h"
...
...
aes-set-encrypt-key.c
View file @
90112edb
/* aes-set-encrypt-key.c
*
* Key setup for the aes/rijndael block cipher.
*/
/* nettle, low-level cryptographics library
*
* Copyright (C) 2000, 2001, 2002 Rafael R. Sevilla, Niels Möller
* Copyright (C) 2013 Niels Möller
*
* The nettle library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or (at your
* option) any later version.
*
* The nettle library 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 Lesser General Public
* License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with the nettle library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02111-1301, USA.
*/
/* Originally written by Rafael R. Sevilla <dido@pacific.net.ph> */
Key setup for the aes/rijndael block cipher.
Copyright (C) 2000, 2001, 2002 Rafael R. Sevilla, Niels Möller
Copyright (C) 2013 Niels Möller
This file is part of GNU Nettle.
GNU Nettle is free software: you can redistribute it and/or
modify it under the terms of either:
* the GNU Lesser General Public License as published by the Free
Software Foundation; either version 3 of the License, or (at your
option) any later version.
or
* 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.
or both in parallel, as here.
GNU Nettle 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 copies of the GNU General Public License and
the GNU Lesser General Public License along with this program. If
not, see http://www.gnu.org/licenses/.
*/
#if HAVE_CONFIG_H
# include "config.h"
...
...
aes-set-key-internal.c
View file @
90112edb
/* aes-set-key-internal.c
*
* Key setup for the aes/rijndael block cipher.
*/
/* nettle, low-level cryptographics library
*
* Copyright (C) 2000, 2001, 2002 Rafael R. Sevilla, Niels Möller
* Copyright (C) 2013 Niels Möller
*
* The nettle library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or (at your
* option) any later version.
*
* The nettle library 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 Lesser General Public
* License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with the nettle library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02111-1301, USA.
*/
Key setup for the aes/rijndael block cipher.
Copyright (C) 2000, 2001, 2002 Rafael R. Sevilla, Niels Möller
Copyright (C) 2013 Niels Möller
This file is part of GNU Nettle.
GNU Nettle is free software: you can redistribute it and/or
modify it under the terms of either:
* the GNU Lesser General Public License as published by the Free
Software Foundation; either version 3 of the License, or (at your
option) any later version.
or
* 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.
or both in parallel, as here.
GNU Nettle 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 copies of the GNU General Public License and
the GNU Lesser General Public License along with this program. If
not, see http://www.gnu.org/licenses/.