openssl 中 EVP_aes_256_gcm() 函数展开

在 openssl 中搜索,只能在头文件搜索到 EVP_aes_256_gcm() ,不能直接搜索到它的实现。

它的实现是通过一个宏展开的,挺难找的,如下,做记录:

文件:openssl-1.1.1g/crypto/evp/e_aes.c

c 复制代码
EVP_aes_256_gcm();

// 代码原文:
BLOCK_CIPHER_custom(NID_aes, 256, 1, 12, gcm, GCM,
                    EVP_CIPH_FLAG_AEAD_CIPHER | CUSTOM_FLAGS)

// 展开后原文:
static const EVP_CIPHER aes_256_gcm = {
    901, 1, (0x6 == 0x10001 ? 2 : 1) * 256 / 8, 12, 
    0x200000 | (0 | 0x10 | 0x100000 | 0x20 | 0x40 | 0x400 | 0x800) | 0x6, 
    aes_gcm_init_key, aes_gcm_cipher, aes_gcm_cleanup, sizeof(EVP_AES_GCM_CTX), 
    ((void *)0), ((void *)0), aes_gcm_ctrl, ((void *)0)
    };
const EVP_CIPHER *EVP_aes_256_gcm(void) { return &aes_256_gcm; }
相关推荐
Never_Satisfied1 天前
通过certbot安装SSL证书
网络·网络协议·ssl
yangchanghua1112 天前
Nacos如何开启ssl(https)[图文版]
服务器·https·ssl
程序猿编码3 天前
探秘 SSL/TLS 服务密码套件检测:原理、实现与核心设计(C/C++代码实现)
c语言·网络·c++·ssl·密码套件
木子欢儿3 天前
Caddy存放ssl/tls证书的位置
网络·网络协议·ssl
西门吹-禅3 天前
【git ssl error check process】
git·ssl
tritone3 天前
标题:用阿贝云免费云服务器配置SSL/TLS,学习证书部署的实用经历
服务器·学习·ssl
人生匆匆3 天前
在nginx上为 IP 地址生成 SSL 证书并在windosw签证
tcp/ip·nginx·ssl
艾文-你好4 天前
深信服SSL aTrust设备密码重置及管理密码重置
linux·服务器·ssl
赤月奇17 天前
https改为http
数据挖掘·https·ssl
k7Cx7e18 天前
宝塔域名强制SSL和带www的方法
网络·网络协议·ssl