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; }
相关推荐
詹某某34111 天前
国密内网IP证书申请指南
github·ssl
奋斗者1号1 天前
SSL/TLS 证书在客户端-服务器通信中的详解
服务器·网络协议·ssl
詹某某34112 天前
IP地址如何申请免费SSL证书?
ssl
hui函数2 天前
如何解决 pip install SSL 报错 ValueError check_hostname requires server_hostname 问题
ssl·pip
Arwen3033 天前
SSL 加密证书助力企业构建安全的网络环境
网络·网络协议·tcp/ip·安全·php·ssl
2501_915921434 天前
iOS App 中 SSL Pinning 场景下代理抓包失效的原因
android·网络协议·ios·小程序·uni-app·iphone·ssl
蒙蒙蒙先生呀4 天前
mysql支持ssl连接
数据库·mysql·ssl
草根站起来5 天前
ip的ssl证书
网络·tcp/ip·ssl
C_心欲无痕5 天前
网络相关 - HTTPS(TSL 和 SSL)
网络·https·ssl