일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Tags
- WebAuthn
- SWIFT
- Nodejs
- albumbook
- git
- otpkey
- MSYS2
- css
- 인증
- fido
- 앱스토어
- 2FA
- 앱리소스
- Xcode
- kmip
- apple
- 안드로이드
- OSX
- FIDO2
- 앨범북
- appres
- openssl
- Android
- MFA
- 애플
- SwiftUI
- OTP
- SSL
- SSH
- MYSQL
Archives
- Today
- Total
인디노트
PEM_write_bio_RSAPublicKey vs PEM_write_bio_RSA_PUBKEY 본문
int PEM_write_bio_RSAPublicKey(BIO *bp, RSA *x);
int PEM_write_bio_RSA_PUBKEY(BIO *bp, RSA *x);
뭐가 다를까?
The RSAPublicKey functions process an RSA public key using an RSA structure. The public key is encoded using a PKCS#1 RSAPublicKey structure.
The RSA_PUBKEY functions also process an RSA public key using an RSA structure. However, the public key is encoded using a SubjectPublicKeyInfo structure and an error occurs if the public key is not RSA.
RSAPublicKey 함수는 RSA 구조를 사용하여 RSA 공개 키를 처리합니다. 공개 키는 PKCS#1 RSAPublicKey 구조를 사용하여 인코딩됩니다.
RSA_PUBKEY 함수는 RSA 구조를 사용하여 RSA 공개 키를 처리합니다. 단, 공개키는 SubjectPublicKeyInfo 구조를 이용하여 인코딩되며, 공개키가 RSA가 아닌 경우 오류가 발생한다.
결론적으로 PKCS#1 을 사용할 경우 RSAPublicKey 를 사용하면 됨
'인증기술 > PKI 기술' 카테고리의 다른 글
Java BouncyCastleProvider 가 설정되어 있는지 확인 후 설정 (0) | 2022.07.17 |
---|---|
OPENSSL PKI pem_password_cb 구현등 (0) | 2022.07.17 |
안드로이드 개인 인증서 추가 관련 정보 (0) | 2018.12.27 |
Simple Certificate Enrollment Protocol (SCEP) (0) | 2018.10.10 |
OpenSSL API를 이용한 보안 프로그래밍, Part 3: 보안 서비스 제공하기 (한글) (0) | 2018.10.08 |
Comments