Skip to content

Commit

Permalink
Feedback, and CFB1 and CFB8 for AES
Browse files Browse the repository at this point in the history
  • Loading branch information
skmcgrail committed Nov 11, 2024
1 parent 1f3308d commit 9c3e64e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions aws-lc-fips-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "aws-lc-fips-sys"
description = "AWS-LC is a general-purpose cryptographic library maintained by the AWS Cryptography team for AWS and their customers. This is the FIPS validated version of AWS-LC."
version = "0.13.0"
links = "aws_lc_fips_0_13_0"
version = "0.12.14"
links = "aws_lc_fips_0_12_14"
authors = ["AWS-LC"]
edition = "2021"
repository = "https://github.com/aws/aws-lc-rs"
Expand Down
10 changes: 10 additions & 0 deletions aws-lc-fips-sys/include/rust_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,16 @@ AWS_LC_FIPS_SYS_EXPORT int CRYPTO_tls1_prf(const EVP_MD *digest,
const uint8_t *seed1, size_t seed1_len,
const uint8_t *seed2, size_t seed2_len);

// The AES_cfb1_encrypt is not exported in a public header on the FIPS branch currently.
AWS_LC_FIPS_SYS_EXPORT void AES_cfb1_encrypt(const uint8_t *in, uint8_t *out,
size_t bits, const AES_KEY *key,
uint8_t *ivec, int *num, int enc);

// The AES_cfb8_encrypt is not exported in a public header on the FIPS branch currently.
AWS_LC_FIPS_SYS_EXPORT void AES_cfb8_encrypt(const uint8_t *in, uint8_t *out,
size_t len, const AES_KEY *key,
uint8_t *ivec, int *num, int enc);

#define AWS_LC_WRAPPER_ADD_PREFIX(a, b) AWS_LC_WRAPPER_ADD_PREFIX_INNER(a, b)
#define AWS_LC_WRAPPER_ADD_PREFIX_INNER(a, b) a ## _ ## b

Expand Down
2 changes: 1 addition & 1 deletion aws-lc-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ fips = ["dep:aws-lc-fips-sys"]
[dependencies]
untrusted = { version = "0.7.1", optional = true }
aws-lc-sys = { version = "0.22.0", path = "../aws-lc-sys", optional = true }
aws-lc-fips-sys = { version = "0.13.0", path = "../aws-lc-fips-sys", optional = true }
aws-lc-fips-sys = { version = "0.12.0", path = "../aws-lc-fips-sys", optional = true }
zeroize = "1.7"
mirai-annotations = "1.12.0"
paste = "1.0.11"
Expand Down

0 comments on commit 9c3e64e

Please sign in to comment.