mirror of
https://github.com/ipxe/ipxe
synced 2025-12-27 18:12:36 +03:00
[crypto] Split crypto_algorithm into {digest,cipher,pubkey}_algorithm
The various types of cryptographic algorithm are fundamentally different, and it was probably a mistake to try to handle them via a single common type. pubkey_algorithm is a placeholder type for now.
This commit is contained in:
@@ -59,12 +59,12 @@ static void aes_cbc_decrypt ( void *ctx, const void *data, void *dst,
|
||||
AES_cbc_decrypt ( &aesctx->ctx, data, dst, len );
|
||||
}
|
||||
|
||||
struct crypto_algorithm aes_cbc_algorithm = {
|
||||
struct cipher_algorithm aes_cbc_algorithm = {
|
||||
.name = "aes_cbc",
|
||||
.ctxsize = sizeof ( struct aes_cbc_context ),
|
||||
.blocksize = 16,
|
||||
.setkey = aes_cbc_setkey,
|
||||
.setiv = aes_cbc_setiv,
|
||||
.encode = aes_cbc_encrypt,
|
||||
.decode = aes_cbc_decrypt,
|
||||
.encrypt = aes_cbc_encrypt,
|
||||
.decrypt = aes_cbc_decrypt,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user