⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rsa_oaep.txt

📁 lots Elliptic curve cryptography codes. Use Visual c++ to compile
💻 TXT
📖 第 1 页 / 共 5 页
字号:
23ModPrime1PrivateExponent: \03 bc 7e a7 f0 aa b1 43 ab c6 ce 8b 97 11 86 36\a3 01 72 e4 cf e0 2c 8f a0 dd a3 b7 ba af 90 f8\09 29 82 98 55 25 f4 88 bd fc b4 bd 72 6e 22 63\9a c6 4a 30 92 ab 7f fc bf 1d 53 34 cf a5 0b 5b\f1ModPrime2PrivateExponent: \02 62 a6 aa 29 c2 a3 c6 7d c5 34 6c 06 38 1a fd\98 7a a3 cc 93 cf bf ec f5 4f dd 9f 9d 78 7d 7f\59 a5 23 d3 98 97 9d a1 37 a2 f6 38 1f e9 48 01\f7 c9 4d a2 15 18 dc 34 cb 40 87 0c 46 97 99 4a\d9MultiplicativeInverseOfPrime2ModPrime1: \64 9d 4c 17 b6 ee 17 21 e7 72 d0 38 9a 55 9c 3d\3c df 95 50 d4 57 c4 6b 03 7b 74 64 1b 1d 52 16\6a f8 a2 13 c8 39 62 06 cd fb a4 42 2f 18 d6 f6\1d bc b5 d2 14 c9 71 bf 48 2a eb 97 6a 73 70 c2Test: KeyPairValidAndConsistentComment: RSAES-OAEP Encryption Example 7.1Plaintext: \47 aa e9 09Seed: # not used yet\43 dd 09 a0 7f f4 ca c7 1c aa 46 32 ee 5e 1c 1d\ae e4 cd 8fCiphertext: \16 88 e4 ce 77 94 bb a6 cb 70 14 16 9e cd 55 9c\ed e2 a3 0b 56 a5 2b 68 d9 fe 18 cf 19 73 ef 97\b2 a0 31 53 95 1c 75 5f 62 94 aa 49 ad bd b5 58\45 ab 68 75 fb 39 86 c9 3e cf 92 79 62 84 0d 28\2f 9e 54 ce 8b 69 0f 7c 0c b8 bb d7 34 40 d9 57\1d 1b 16 cd 92 60 f9 ea b4 78 3c c4 82 e5 22 3d\c6 09 73 87 17 83 ec 27 b0 ae 0f d4 77 32 cb c2\86 a1 73 fc 92 b0 0f b4 ba 68 24 64 7c d9 3c 85\c1Test: DecryptMatchComment: RSAES-OAEP Encryption Example 7.2Plaintext: \1d 9b 2e 22 23 d9 bc 13 bf b9 f1 62 ce 73 5d b4\8b a7 c6 8f 68 22 a0 a1 a7 b6 ae 16 58 34 e7Seed: # not used yet\3a 9c 3c ec 7b 84 f9 bd 3a de cb c6 73 ec 99 d5\4b 22 bc 9bCiphertext: \10 52 ed 39 7b 2e 01 e1 d0 ee 1c 50 bf 24 36 3f\95 e5 04 f4 a0 34 34 a0 8f d8 22 57 4e d6 b9 73\6e db b5 f3 90 db 10 32 14 79 a8 a1 39 35 0e 2b\d4 97 7c 37 78 ef 33 1f 3e 78 ae 11 8b 26 84 51\f2 0a 2f 01 d4 71 f5 d5 3c 56 69 37 17 1b 2d bc\2d 4b de 45 9a 57 99 f0 37 2d 65 74 23 9b 23 23\d2 45 d0 bb 81 c2 86 b6 3c 89 a3 61 01 73 37 e4\90 2f 88 a4 67 f4 c7 f2 44 bf d5 ab 46 43 7f f3\b6Test: DecryptMatchComment: RSAES-OAEP Encryption Example 7.3Plaintext: \d9 76 fcSeed: # not used yet\76 a7 5e 5b 61 57 a5 56 cf 88 84 bb 2e 45 c2 93\dd 54 5c f5Ciphertext: \21 55 cd 84 3f f2 4a 4e e8 ba db 76 94 26 00 28\a4 90 81 3b a8 b3 69 a4 cb f1 06 ec 14 8e 52 98\70 7f 59 65 be 7d 10 1c 10 49 ea 85 84 c2 4c d6\34 55 ad 9c 10 4d 68 62 82 d3 fb 80 3a 4c 11 c1\c2 e9 b9 1c 71 78 80 1d 1b 66 40 f0 03 f5 72 8d\f0 07 b8 a4 cc c9 2b ce 05 e4 1a 27 27 8d 7c 85\01 8c 52 41 43 13 a5 07 77 89 00 1d 4f 01 91 0b\72 aa d0 5d 22 0a a1 4a 58 73 3a 74 89 bc 54 55\6bTest: DecryptMatchComment: RSAES-OAEP Encryption Example 7.4Plaintext: \d4 73 86 23 df 22 3a a4 38 43 df 84 67 53 4c 41\d0 13 e0 c8 03 c6 24 e2 63 66 6b 23 9b de 40 a5\f2 9a eb 8d e7 9e 3d aa 61 dd 03 70 f4 9b d4 b0\13 83 4b 98 21 2a ef 6b 1c 5e e3 73 b3 cbSeed: # not used yet\78 66 31 4a 6a d6 f2 b2 50 a3 59 41 db 28 f5 86\4b 58 58 59Ciphertext: \0a b1 4c 37 3a eb 7d 43 28 d0 aa ad 8c 09 4d 88\b9 eb 09 8b 95 f2 10 54 a2 90 82 52 2b e7 c2 7a\31 28 78 b6 37 91 7e 3d 81 9e 6c 3c 56 8d b5 d8\43 80 2b 06 d5 1d 9e 98 a2 be 0b f4 0c 03 14 23\b0 0e df bf f8 32 0e fb 91 71 bd 20 44 65 3a 4c\b9 c5 12 2f 6c 65 e8 3c da 2e c3 c1 26 02 7a 9c\1a 56 ba 87 4d 0f ea 23 f3 80 b8 2c f2 40 b8 cf\54 00 04 75 8c 4c 77 d9 34 15 7a 74 f3 fc 12 bf\acTest: DecryptMatchComment: RSAES-OAEP Encryption Example 7.5Plaintext: \bb 47 23 1c a5 ea 1d 3a d4 6c 99 34 5d 9a 8a 61Seed: # not used yet\b2 16 6e d4 72 d5 8d b1 0c ab 2c 6b 00 0c cc f1\0a 7d c5 09Ciphertext: \02 83 87 a3 18 27 74 34 79 8b 4d 97 f4 60 06 8d\f5 29 8f ab a5 04 1b a1 17 61 a1 cb 73 16 b2 41\84 11 4e c5 00 25 7e 25 89 ed 3b 60 7a 1e bb e9\7a 6c c2 e0 2b f1 b6 81 f4 23 12 a3 3b 7a 77 d8\e7 85 5c 4a 6d e0 3e 3c 04 64 3f 78 6b 91 a2 64\a0 d6 80 5e 2c ea 91 e6 81 77 eb 7a 64 d9 25 5e\4f 27 e7 13 b7 cc ec 00 dc 20 0e bd 21 c2 ea 2b\b8 90 fe ae 49 42 df 94 1d c3 f9 78 90 ed 34 74\78Test: DecryptMatchComment: RSAES-OAEP Encryption Example 7.6Plaintext: \21 84 82 70 95 d3 5c 3f 86 f6 00 e8 e5 97 54 01\32 96Seed: # not used yet\52 67 3b de 2c a1 66 c2 aa 46 13 1a c1 dc 80 8d\67 d7 d3 b1Ciphertext: \14 c6 78 a9 4a d6 05 25 ef 39 e9 59 b2 f3 ba 5c\09 7a 94 ff 91 2b 67 db ac e8 05 35 c1 87 ab d4\7d 07 54 20 b1 87 21 52 bb a0 8f 7f c3 1f 31 3b\bf 92 73 c9 12 fc 4c 01 49 a9 b0 cf b7 98 07 e3\46 eb 33 20 69 61 1b ec 0f f9 bc d1 68 f1 f7 c3\3e 77 31 3c ea 45 4b 94 e2 54 9e ec f0 02 e2 ac\f7 f6 f2 d2 84 5d 4f e0 aa b2 e5 a9 2d df 68 c4\80 ae 11 24 79 35 d1 f6 25 74 84 22 16 ae 67 41\15Test: DecryptMatchAlgorithmType: AsymmetricCipherName: RSA/OAEP-MGF1(SHA-1)Source: http://www.rsasecurity.com/rsalabs/pkcs/pkcs-1/, PKCS #1 test vectorsKeyFormat: ComponentComment: Example 8: A 1031-bit RSA Key PairModulus: \5b df 0e 30 d3 21 dd a5 14 7f 88 24 08 fa 69 19\54 80 df 8f 80 d3 f6 e8 bf 58 18 50 4f 36 42 7c\a9 b1 f5 54 0b 9c 65 a8 f6 97 4c f8 44 7a 24 4d\92 80 20 1b b4 9f cb be 63 78 d1 94 4c d2 27 e2\30 f9 6e 3d 10 f8 19 dc ef 27 6c 64 a0 0b 2a 4b\67 01 e7 d0 1d e5 fa bd e3 b1 e9 a0 df 82 f4 63\13 59 cd 22 66 96 47 fb b1 71 72 46 13 4e d7 b4\97 cf ff bd c4 2b 59 c7 3a 96 ed 90 16 62 12 df\f7PublicExponent: \01 00 01PrivateExponent: \0f 7d 1e 9e 5a aa 25 fd 13 e4 a0 66 3a e1 44 e0\d1 5f 5c d1 8b cd b0 9d f2 cc 7e 64 e3 c5 e9 15\ad 62 64 53 04 16 1d 09 8c 71 5b b7 ab 8b d0 1d\07 ea f3 fe d7 c7 ed 08 af 2a 8a 62 ef 44 ab 16\b3 20 e1 4a f7 2a 48 f9 6a fe 26 2a 0a e4 cf 65\e6 35 e9 10 79 0c d4 ee 5c ea 76 8a 4b 26 39 f7\e6 f6 77 b3 f0 bb 6b e3 2b 75 74 7d 89 09 03 6f\02 64 f5 8d 40 1c db a1 31 71 61 57 a7 5e cf 63\31Prime1: \0a 02 ef 84 48 d9 fa d8 bb d0 d0 04 c8 c2 aa 97\51 ef 97 21 c1 b0 d0 32 36 a5 4b 0d f9 47 cb ae\d5 a2 55 ee 9e 8e 20 d4 91 ea 17 23 fe 09 47 04\a9 76 2e 88 af d1 6e bb 59 94 41 2c a9 66 dc 4f\9fPrime2: \09 2d 36 2e 7e d3 a0 bf d9 e9 fd 0e 6c 03 01 b6\df 29 15 9c f5 0c c8 3b 9b 0c f4 d6 ee a7 1a 61\e0 02 b4 6e 0a e9 f2 de 62 d2 5b 5d 74 52 d4 98\b8 1c 9a c6 fc 58 59 3d 4c 3f b4 f5 d7 2d fb b0\a9ModPrime1PrivateExponent: \07 c7 14 10 af 10 39 62 db 36 74 04 e3 7a e8 50\ba a4 e9 c2 9d d9 21 45 81 52 94 a6 7c 7d 1c 6d\ed 26 3a a0 30 a9 b6 33 ae 50 30 3e 14 03 5d 1a\f0 14 12 3e ba 68 78 20 30 8d 8e bc 85 b6 95 7d\7dModPrime2PrivateExponent: \ae 2c 75 38 0c 02 c0 16 ad 05 89 1b 33 01 de 88\1f 28 ae 11 71 18 2b 6b 2c 83 be a7 c5 15 ec a9\ca 29 8c 7b 1c ab 58 17 a5 97 06 8f c8 50 60 de\4d a8 a0 16 37 8a ae 43 c7 f9 67 bc c3 79 04 b9MultiplicativeInverseOfPrime2ModPrime1: \05 98 d1 05 9e 3a da 4f 63 20 75 2c 09 d8 05 ff\7d 1f 1a e0 d0 17 ae ee e9 ce fa 0d 7d d7 ff 77\5e 44 b5 78 32 2f 64 05 d6 21 1d a1 95 19 66 6a\a8 7f dc 4c d8 c8 8f 6b 6e 3d 67 e9 61 dc bb a3\d0Test: KeyPairValidAndConsistentComment: RSAES-OAEP Encryption Example 8.1Plaintext: \05 0b 75 5e 5e 68 80 f7 b9 e9 d6 92 a7 4c 37 aa\e4 49 b3 1b fe a6 de ff 83 74 7a 89 7f 6c 2c 82\5b b1 ad bf 85 0a 3c 96 99 4b 5d e5 b3 3c bc 7d\4a 17 91 3a 79 67Seed: # not used yet\77 06 ff ca 1e cf b1 eb ee 2a 55 e5 c6 e2 4c d2\79 7a 41 25Ciphertext: \09 b3 68 3d 8a 2e b0 fb 29 5b 62 ed 1f b9 29 0b\71 44 57 b7 82 53 19 f4 64 78 72 af 88 9b 30 40\94 72 02 0a d1 29 12 bf 19 b1 1d 48 19 f4 96 14\82 4f fd 84 d0 9c 0a 17 e7 d1 73 09 d1 29 19 79\04 10 aa 29 95 69 9f 6a 86 db e3 24 2b 5a cc 23\af 45 69 10 80 d6 b1 ae 81 0f b3 e3 05 70 87 f0\97 00 92 ce 00 be 95 62 ff 40 53 b6 26 2c e0 ca\a9 3e 13 72 3d 2e 3a 5b a0 75 d4 5f 0d 61 b5 4b\61Test: DecryptMatchComment: RSAES-OAEP Encryption Example 8.2Plaintext: \4e b6 8d cd 93 ca 9b 19 df 11 1b d4 36 08 f5 57\02 6f e4 aa 1d 5c fa c2 27 a3 eb 5a b9 54 8c 18\a0 6d de d2 3f 81 82 59 86 b2 fc d7 11 09 ec ef\7e ff 88 87 3f 07 5c 2a a0 c4 69 f6 9c 92 bcSeed: # not used yet\a3 71 7d a1 43 b4 dc ff bc 74 26 65 a8 fa 95 05\85 54 83 43Ciphertext: \2e cf 15 c9 7c 5a 15 b1 47 6a e9 86 b3 71 b5 7a\24 28 4f 4a 16 2a 8d 0c 81 82 e7 90 5e 79 22 56\f1 81 2b a5 f8 3f 1f 7a 13 0e 42 dc c0 22 32 84\4e dc 14 a3 1a 68 ee 97 ae 56 4a 38 3a 34 11 65\64 24 c5 f6 2d db 64 60 93 c3 67 be 1f cd a4 26\cf 00 a0 6d 8a cb 7e 57 77 6f bb d8 55 ac 3d f5\06 fc 16 b1 d7 c3 f2 11 0f 3d 80 68 e9 1e 18 63\63 83 1c 84 09 68 0d 8d a9 ec d8 cf 1f a2 0e e3\9dTest: DecryptMatchComment: RSAES-OAEP Encryption Example 8.3Plaintext: \86 04 ac 56 32 8c 1a b5 ad 91 78 61Seed: # not used yet\ee 06 20 90 73 cc a0 26 bb 26 4e 51 85 bf 8c 68\b7 73 9f 86Ciphertext: \4b c8 91 30 a5 b2 da bb 7c 2f cf 90 eb 5d 0e af\9e 68 1b 71 46 a3 8f 31 73 a3 d9 cf ec 52 ea 9e\0a 41 93 2e 64 8a 9d 69 34 4c 50 da 76 3f 51 a0\3c 95 76 21 31 e8 05 22 54 dc d2 24 8c ba 40 fd\31 66 77 86 ce 05 a2 b7 b5 31 ac 9d ac 9e d5 84\a5 9b 67 7c 1a 8a ed 8c 5d 15 d6 8c 05 56 9e 2b\e7 80 bf 7d b6 38 fd 2b fd 2a 85 ab 27 68 60 f3\77 73 38 fc a9 89 ff d7 43 d1 3e e0 8e 0c a9 89\3fTest: DecryptMatchComment: RSAES-OAEP Encryption Example 8.4Plaintext: \fd da 5f bf 6e c3 61 a9 d9 a4 ac 68 af 21 6a 06\86 f4 38 b1 e0 e5 c3 6b 95 5f 74 e1 07 f3 9c 0d\dd ccSeed: # not used yet\99 0a d5 73 dc 48 a9 73 23 5b 6d 82 54 36 18 f2\e9 55 10 5dCiphertext: \2e 45 68 47 d8 fc 36 ff 01 47 d6 99 35 94 b9 39\72 27 d5 77 75 2c 79 d0 f9 04 fc b0 39 d4 d8 12\fe a6 05 a7 b5 74 dd 82 ca 78 6f 93 75 23 48 43\8e e9 f5 b5 45 49 85 d5 f0 e1 69 9e 3e 7a d1 75\a3 2e 15 f0 3d eb 04 2a b9 fe 1d d9 db 1b b8 6f\8c 08 9c cb 45 e7 ef 0c 5e e7 ca 9b 72 90 ca 6b\15 be d4 70 39 78 8a 8a 93 ff 83 e0 e8 d6 24 4c\71 00 63 62 de ef 69 b6 f4 16 fb 3c 68 43 83 fb\d0Test: DecryptMatchComment: RSAES-OAEP Encryption Example 8.5Plaintext: \4a 5f 49 14 be e2 5d e3 c6 93 41 de 07Seed: # not used yet\ec c6 3b 28 f0 75 6f 22 f5 2a c8 e6 ec 12 51 a6\ec 30 47 18Ciphertext: \1f b9 35 6f d5 c4 b1 79 6d b2 eb f7 d0 d3 93 cc\81 0a df 61 45 de fc 2f ce 71 4f 79 d9 38 00 d5\e2 ac 21 1e a8 bb ec ca 4b 65 4b 94 c3 b1 8b 30\dd 57 6c e3 4d c9 54 36 ef 57 a0 94 15 64 59 23\35 9a 5d 7b 41 71 ef 22 c2 46 70 f1 b2 29 d3 60\3e 91 f7 66 71 b7 df 97 e7 31 7c 97 73 44 76 d5\f3 d1 7d 21 cf 82 b5 ba 9f 83 df 2e 58 8d 36 98\4f d1 b5 84 46 8b d2 3b 2e 87 5f 32 f6 89 53 f7\b2Test: DecryptMatchComment: RSAES-OAEP Encryption Example 8.6Plaintext: \8e 07 d6 6f 7b 88 0a 72 56 3a bc d3 f3 50 92 bc\33 40 9f b7 f8 8f 24 72 beSeed: # not used yet\39 25 c7 1b 36 2d 40 a0 a6 de 42 14 55 79 ba 1e\7d d4 59 fcCiphertext: \3a fd 9c 66 00 14 7b 21 79 8d 81 8c 65 5a 0f 4c\92 12 db 26 d0 b0 df dc 2a 75 94 cc b3 d2 2f 5b\f1 d7 c3 e1 12 cd 73 fc 7d 50 9c 7a 8b af dd 3c\27 4d 13 99 00 9f 96 09 ec 4b e6 47 7e 45 3f 07\5a a3 3d b3 82 87 0c 1c 34 09 ae f3 92 d7 38 6a\e3 a6 96 b9 9a 94 b4 da 05 89 44 7e 95 5d 16 c9\8b 17 60 2a 59 bd 73 62 79 fc d8 fb 28 0c 44 62\d5 90 bf a9 bf 13 fe d5 70 ea fd e9 73 30 a2 c2\10Test: DecryptMatchAlgorithmType: AsymmetricCipherName: RSA/OAEP-MGF1(SHA-1)Source: http://www.rsasecurity.com/rsalabs/pkcs/pkcs-1/, PKCS #1 test vectorsKeyFormat: ComponentComment: Example 9: A 1536-bit RSA Key PairModulus: \cf 2c d4 1e 34 ca 3a 72 8e a5 cb 8a ff 64 c3 6d\27 bd ef 53 64 e3 36 fd 68 d3 12 3c 5a 19 6a 8c\28 70 13 e8 53 d5 15 6d 58 d1 51 95 45 20 fb 4f\6d 7b 17 ab b6 81 77 65 90 9c 57 61 19 65 9d 90\2b 19 06 ed 8a 2b 10 c1 55 c2 4d 12 45 28 da b9\ee ae 37 9b ea c6 6e 4a 41 17 86 dc b8 fd 00 62\eb c0 30 de 12 19 a0 4c 2a 8c 1b 7d d3 13 1e 4d\6b 6c ae e2 e3 1a 5e d4 1a c1 50 9b 2e f1 ee 2a\b1 83 64 be 56 8c a9 41 c2 5e cc 84 ff 9d 64 3b\5e c1 aa ae 10 2a 20 d7 3f 47 9b 78 0f d6 da 91\07 52 12 d9 ea c0 3a 06 74 d8 99 eb a2 e4 31 f4\c4 4b 61 5b 6b a2 23 2b d4 b3 3b ae d7 3d 62 5dPublicExponent: \01 00 01PrivateExponent: \19 8c 14 1e 23 71 5a 92 bc cf 6a 11 9a 5b c1 13\89 46 8d 28 11 f5 48 d7 27 e1 7b 4a b0 eb 98 6d\6f 21 1e fb 53 b7 1f 7c cb ea 87 ee 69 c7 5e e6\15 00 8c 53 32 de b5 2b f3 90 ab df bf e3 7d 72\05 36 81 59 b2 63 8c 1d e3 26 e2 1d 22 25 1f 0f\b5 84 8b 3b f1 50 05 d2 a7 43 30 f0 af e9 16 ee\62 cc c1 34 4d 1d 83 a7 09 e6 06 76 27 38 40 f7\f3 77 42 4a 5e 0a 4d a7 5f 01 b3 1f f7 68 19 cf\9c bf dd 21 52 43 c3 91 7c 03 ef 38 19 93 12 e5\67 b3 bf 7a ed 3a b4 57 f3 71 ef 8a 14 23 f4 5b\68 c6 e2 82 ec 11 1b ba 28 33 b9 87 fd 69 fa d8\3b c1 b8 c6 13 c5 e1 ea 16 c1 1e d1 25 ea 7e c1Prime1: \fc 8d 6c 04 be c4 eb 9a 81 92 ca 79 00 cb e5 36\e2 e8 b5 19 de cf 33 b2 45 97 98 c6 90 9d f4 f1\76 db 7d 23 19 0f c7 2b 88 65 a7 18 af 89 5f 1b\cd 91 45 29 80 27 42 3b 60 5e 70 a4 7c f5 83 90\a8 c3 e8 8f c8 c4 8e 8b 32 e3 da 21 0d fb e3 e8\81 ea 56 74 b6 a3 48 c2 1e 93 f9 e5 5e a6 5e fdPrime2: \d2 00 d4 5e 78 8a ac ea 60 6a 40 1d 04 60 f8 7d\d5 c1 02 7e 12 dc 1a 0d 75 86 e8 93 9d 9c f7 89\b4 0f 51 ac 04 42 96 1d e7 d2 1c c2 1e 05 c8 31\55 c1 f2 aa 91 93 38 7c fd f9 56 cb 48 d1 53 ba\27 04 06 f9 bb ba 53 7d 49 87 d9 e2 f9 94 2d 7a\14 cb ff fe a7 4f ec dd a9 28 d2 3e 25 9f 5e e1

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -