Home
last modified time | relevance | path

Searched refs:plain_text (Results 1 – 25 of 515) sorted by relevance

12345678910>>...21

/dports/devel/elixir-plug/plug-1.4.5/lib/plug/crypto/
H A Dmessage_verifier.ex43 plain_text = Base.url_encode64(payload)
44 signature = :crypto.hmac(:sha, key, plain_text)
45 plain_text <> "##" <> Base.url_encode64(signature)
51 {"HS1", payload, plain_text, signature} ->
73 plain_text = signing_input(protected, payload)
75 encode_token(plain_text, signature)
95 defp encode_token(plain_text, signature)
102 plain_text = protected <> "." <> payload,
106 {protected, payload, plain_text, signature}
130 …with [plain_text, signature] when byte_size(plain_text) > 0 and byte_size(signature) > 0 <- split,
[all …]
/dports/audio/lewton/lewton-0.10.2/cargo-crates/sha2-0.1.2/rust-crypto/src/
H A Dchacha20poly1305.rs97 plain_text: Vec<u8>, field
111 let mut output: Vec<u8> = repeat(0).take(tv.plain_text.len()).collect(); in test_chacha20_256_poly1305_boringssl_vectors_encrypt()
113 c.encrypt(&tv.plain_text[..], &mut output[..], &mut tag[..]); in test_chacha20_256_poly1305_boringssl_vectors_encrypt()
126 let mut output: Vec<u8> = repeat(0).take(tv.plain_text.len()).collect(); in test_chacha20_256_poly1305_boringssl_vectors_decrypt()
128 assert_eq!(output, tv.plain_text); in test_chacha20_256_poly1305_boringssl_vectors_decrypt()
138 plain_text: vec!(), in get_test_vectors()
145 plain_text: vec!(0x8c, 0x84, 0x19, 0xbc, 0x27), in get_test_vectors()
153 plain_text: vec!(0x86, 0xd0, 0x99, 0x74, 0x84, 0x0b, 0xde, 0xd2, 0xa5, 0xca), in get_test_vectors()
161plain_text: vec!(0x53, 0x7a, 0x64, 0x53, 0x87, 0xf2, 0x2d, 0x6f, 0x6d, 0xbb, 0xea, 0x56, 0x8d, 0x3… in get_test_vectors()
169plain_text: vec!(0xb7, 0x67, 0x33, 0x89, 0x5c, 0x87, 0x1e, 0xdd, 0x72, 0x8a, 0x45, 0xed, 0x1a, 0x2… in get_test_vectors()
[all …]
/dports/devel/dtool/dtool-0.11.0/cargo-crates/rust-crypto-0.2.36/src/
H A Dchacha20poly1305.rs97 plain_text: Vec<u8>, field
111 let mut output: Vec<u8> = repeat(0).take(tv.plain_text.len()).collect(); in test_chacha20_256_poly1305_boringssl_vectors_encrypt()
113 c.encrypt(&tv.plain_text[..], &mut output[..], &mut tag[..]); in test_chacha20_256_poly1305_boringssl_vectors_encrypt()
126 let mut output: Vec<u8> = repeat(0).take(tv.plain_text.len()).collect(); in test_chacha20_256_poly1305_boringssl_vectors_decrypt()
128 assert_eq!(output, tv.plain_text); in test_chacha20_256_poly1305_boringssl_vectors_decrypt()
138 plain_text: vec!(), in get_test_vectors()
145 plain_text: vec!(0x8c, 0x84, 0x19, 0xbc, 0x27), in get_test_vectors()
153 plain_text: vec!(0x86, 0xd0, 0x99, 0x74, 0x84, 0x0b, 0xde, 0xd2, 0xa5, 0xca), in get_test_vectors()
161plain_text: vec!(0x53, 0x7a, 0x64, 0x53, 0x87, 0xf2, 0x2d, 0x6f, 0x6d, 0xbb, 0xea, 0x56, 0x8d, 0x3… in get_test_vectors()
169plain_text: vec!(0xb7, 0x67, 0x33, 0x89, 0x5c, 0x87, 0x1e, 0xdd, 0x72, 0x8a, 0x45, 0xed, 0x1a, 0x2… in get_test_vectors()
[all …]
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/components/password_manager/core/browser/
H A Dlogin_database_posix.cc30 const base::string16& plain_text, in EncryptedString() argument
34 *cipher_text = base::UTF16ToUTF8(plain_text); in EncryptedString()
39 return OSCrypt::EncryptString16(plain_text, cipher_text) in EncryptedString()
46 base::string16* plain_text) const { in DecryptedString()
60 *plain_text = base::UTF8ToUTF16(cipher_text); in DecryptedString()
67 bool decryption_success = OSCrypt::DecryptString16(cipher_text, plain_text); in DecryptedString()
74 *plain_text = base::UTF8ToUTF16(cipher_text); in DecryptedString()
H A Dlogin_database_win.cc13 const base::string16& plain_text, in EncryptedString() argument
15 if (OSCrypt::EncryptString16(plain_text, cipher_text)) in EncryptedString()
22 base::string16* plain_text) const { in DecryptedString()
33 plain_text->clear(); in DecryptedString()
36 if (OSCrypt::DecryptString16(cipher_text, plain_text)) in DecryptedString()
/dports/www/chromium-legacy/chromium-88.0.4324.182/components/password_manager/core/browser/
H A Dlogin_database_posix.cc30 const base::string16& plain_text, in EncryptedString() argument
34 *cipher_text = base::UTF16ToUTF8(plain_text); in EncryptedString()
39 return OSCrypt::EncryptString16(plain_text, cipher_text) in EncryptedString()
46 base::string16* plain_text) const { in DecryptedString()
60 *plain_text = base::UTF8ToUTF16(cipher_text); in DecryptedString()
67 bool decryption_success = OSCrypt::DecryptString16(cipher_text, plain_text); in DecryptedString()
74 *plain_text = base::UTF8ToUTF16(cipher_text); in DecryptedString()
H A Dlogin_database_win.cc13 const base::string16& plain_text, in EncryptedString() argument
15 if (OSCrypt::EncryptString16(plain_text, cipher_text)) in EncryptedString()
22 base::string16* plain_text) const { in DecryptedString()
33 plain_text->clear(); in DecryptedString()
36 if (OSCrypt::DecryptString16(cipher_text, plain_text)) in DecryptedString()
/dports/japanese/ibus-mozc/mozc-2.23.2815.102.01/src/base/
H A Dencryptor.cc340 string *plain_text) { in UnprotectData() argument
341 DCHECK(plain_text); in UnprotectData()
382 cipher_text->assign(plain_text); in ProtectData()
393 string *plain_text) { in UnprotectData() argument
394 DCHECK(plain_text); in UnprotectData()
407 plain_text->assign(cipher_text); in UnprotectData()
408 if (!DecryptString(key, plain_text)) { in UnprotectData()
409 plain_text->clear(); in UnprotectData()
443 string buf = plain_text; in ProtectData()
485 plain_text->clear(); in UnprotectData()
[all …]
/dports/japanese/uim-mozc/mozc-2.23.2815.102.01/src/base/
H A Dencryptor.cc340 string *plain_text) { in UnprotectData() argument
341 DCHECK(plain_text); in UnprotectData()
382 cipher_text->assign(plain_text); in ProtectData()
393 string *plain_text) { in UnprotectData() argument
394 DCHECK(plain_text); in UnprotectData()
407 plain_text->assign(cipher_text); in UnprotectData()
408 if (!DecryptString(key, plain_text)) { in UnprotectData()
409 plain_text->clear(); in UnprotectData()
443 string buf = plain_text; in ProtectData()
485 plain_text->clear(); in UnprotectData()
[all …]
/dports/japanese/mozc-tool/mozc-2.23.2815.102.01/src/base/
H A Dencryptor.cc340 string *plain_text) { in UnprotectData() argument
341 DCHECK(plain_text); in UnprotectData()
382 cipher_text->assign(plain_text); in ProtectData()
393 string *plain_text) { in UnprotectData() argument
394 DCHECK(plain_text); in UnprotectData()
407 plain_text->assign(cipher_text); in UnprotectData()
408 if (!DecryptString(key, plain_text)) { in UnprotectData()
409 plain_text->clear(); in UnprotectData()
443 string buf = plain_text; in ProtectData()
485 plain_text->clear(); in UnprotectData()
[all …]
/dports/japanese/mozc-server/mozc-2.23.2815.102.01/src/base/
H A Dencryptor.cc340 string *plain_text) { in UnprotectData() argument
341 DCHECK(plain_text); in UnprotectData()
382 cipher_text->assign(plain_text); in ProtectData()
393 string *plain_text) { in UnprotectData() argument
394 DCHECK(plain_text); in UnprotectData()
407 plain_text->assign(cipher_text); in UnprotectData()
408 if (!DecryptString(key, plain_text)) { in UnprotectData()
409 plain_text->clear(); in UnprotectData()
443 string buf = plain_text; in ProtectData()
485 plain_text->clear(); in UnprotectData()
[all …]
/dports/japanese/mozc-el/mozc-2.23.2815.102.01/src/base/
H A Dencryptor.cc340 string *plain_text) { in UnprotectData() argument
341 DCHECK(plain_text); in UnprotectData()
382 cipher_text->assign(plain_text); in ProtectData()
393 string *plain_text) { in UnprotectData() argument
394 DCHECK(plain_text); in UnprotectData()
407 plain_text->assign(cipher_text); in UnprotectData()
408 if (!DecryptString(key, plain_text)) { in UnprotectData()
409 plain_text->clear(); in UnprotectData()
443 string buf = plain_text; in ProtectData()
485 plain_text->clear(); in UnprotectData()
[all …]
/dports/japanese/fcitx-mozc/mozc-2.23.2815.102.01/src/base/
H A Dencryptor.cc340 string *plain_text) { in UnprotectData() argument
341 DCHECK(plain_text); in UnprotectData()
382 cipher_text->assign(plain_text); in ProtectData()
393 string *plain_text) { in UnprotectData() argument
394 DCHECK(plain_text); in UnprotectData()
407 plain_text->assign(cipher_text); in UnprotectData()
408 if (!DecryptString(key, plain_text)) { in UnprotectData()
409 plain_text->clear(); in UnprotectData()
443 string buf = plain_text; in ProtectData()
485 plain_text->clear(); in UnprotectData()
[all …]
/dports/security/modsecurity3/modsecurity-v3.0.5/src/utils/
H A Dbase64.cc116 void Base64::decode_forgiven_engine(unsigned char *plain_text, in decode_forgiven_engine() argument
162 plain_text[j] = ch << 2; in decode_forgiven_engine()
169 plain_text[j++] |= ch >> 4; in decode_forgiven_engine()
170 plain_text[j] = (ch & 0x0f) << 4; in decode_forgiven_engine()
177 plain_text[j++] |= ch >>2; in decode_forgiven_engine()
178 plain_text[j] = (ch & 0x03) << 6; in decode_forgiven_engine()
185 plain_text[j++] |= ch; in decode_forgiven_engine()
202 plain_text[k] = 0; in decode_forgiven_engine()
208 plain_text[j] = '\0'; in decode_forgiven_engine()
/dports/games/freeciv/freeciv-2.6.6/client/
H A Dluaconsole_common.c43 char plain_text[MAX_LEN_MSG]; in luaconsole_append() local
47 featured_text_to_plain_text(featured_text, plain_text, in luaconsole_append()
48 sizeof(plain_text), &tags, TRUE); in luaconsole_append()
65 real_luaconsole_append(plain_text, tags); in luaconsole_append()
100 void luaconsole_event(const char *plain_text, in luaconsole_event() argument
103 real_luaconsole_append(plain_text, tags); in luaconsole_event()
/dports/games/freeciv-nox11/freeciv-2.6.6/client/
H A Dluaconsole_common.c43 char plain_text[MAX_LEN_MSG]; in luaconsole_append() local
47 featured_text_to_plain_text(featured_text, plain_text, in luaconsole_append()
48 sizeof(plain_text), &tags, TRUE); in luaconsole_append()
65 real_luaconsole_append(plain_text, tags); in luaconsole_append()
100 void luaconsole_event(const char *plain_text, in luaconsole_event() argument
103 real_luaconsole_append(plain_text, tags); in luaconsole_event()
/dports/devel/elixir-hex/hex-1.0.1/lib/hex/crypto/
H A Daes_cbc_hmac_sha2.ex13 def content_encrypt({aad, plain_text}, key, iv)
20 cipher_text = aes_cbc_encrypt(enc_key, iv, pkcs7_pad(plain_text))
45 plain_text when is_binary(plain_text) ->
46 pkcs7_unpad(plain_text)
61 def encrypt(%{key_length: key_length}, key, iv, {aad, plain_text})
63 content_encrypt({aad, plain_text}, key, iv)
84 defp aes_cbc_encrypt(key, iv, plain_text) do
88 aes_cbc_encrypt_fallback(key, iv, plain_text)
91 aes_cbc_encrypt_fallback(key, iv, plain_text)
94 defp aes_cbc_encrypt_fallback(key, iv, plain_text) do
[all …]
H A Daes_gcm.ex15 def content_encrypt({aad, plain_text}, key, iv)
16 when is_binary(aad) and is_binary(plain_text) and bit_size(key) in [128, 192, 256] and
18 Hex.Stdlib.crypto_one_time_aead_encrypt(:aes_gcm, key, iv, plain_text, aad)
27 plain_text when is_binary(plain_text) ->
28 {:ok, plain_text}
39 def encrypt(%{key_length: key_length}, key, iv, {aad, plain_text})
41 content_encrypt({aad, plain_text}, key, iv)
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/components/webcrypto/algorithms/
H A Daes_gcm_unittest.cc43 const std::vector<uint8_t>& plain_text, in AesGcmEncrypt() argument
50 Status status = Encrypt(algorithm, key, CryptoData(plain_text), &output); in AesGcmEncrypt()
81 std::vector<uint8_t>* plain_text) { in AesGcmDecrypt() argument
94 return Decrypt(algorithm, key, CryptoData(cipher_text_with_tag), plain_text); in AesGcmDecrypt()
181 std::vector<uint8_t> plain_text; in TEST_F() local
186 EXPECT_BYTES_EQ(test_plain_text, plain_text); in TEST_F()
192 test_authentication_tag, &plain_text)); in TEST_F()
196 test_authentication_tag, &plain_text)); in TEST_F()
200 test_authentication_tag, &plain_text)); in TEST_F()
204 Corrupted(test_authentication_tag), &plain_text)); in TEST_F()
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/components/webcrypto/algorithms/
H A Daes_gcm_unittest.cc43 const std::vector<uint8_t>& plain_text, in AesGcmEncrypt() argument
50 Status status = Encrypt(algorithm, key, CryptoData(plain_text), &output); in AesGcmEncrypt()
81 std::vector<uint8_t>* plain_text) { in AesGcmDecrypt() argument
94 return Decrypt(algorithm, key, CryptoData(cipher_text_with_tag), plain_text); in AesGcmDecrypt()
181 std::vector<uint8_t> plain_text; in TEST_F() local
186 EXPECT_BYTES_EQ(test_plain_text, plain_text); in TEST_F()
192 test_authentication_tag, &plain_text)); in TEST_F()
196 test_authentication_tag, &plain_text)); in TEST_F()
200 test_authentication_tag, &plain_text)); in TEST_F()
204 Corrupted(test_authentication_tag), &plain_text)); in TEST_F()
[all …]
/dports/textproc/xlnt/xlnt-1.5.0-92-g20f3dac2/source/cell/
H A Drich_text.cpp38 rich_text::rich_text(const std::string &plain_text) in rich_text() argument
39 : rich_text(rich_text_run{plain_text, optional<font>(), has_trailing_whitespace(plain_text)}) in rich_text()
43 rich_text::rich_text(const std::string &plain_text, const class font &text_font) in rich_text() argument
44 …: rich_text(rich_text_run{plain_text, optional<font>(text_font), has_trailing_whitespace(plain_tex… in rich_text()
74 void rich_text::plain_text(const std::string &s, bool preserve_space = false) in plain_text() function in xlnt::rich_text
80 std::string rich_text::plain_text() const in plain_text() function in xlnt::rich_text
/dports/cad/py-ezdxf/ezdxf-0.16.3/tests/test_05_tools/
H A Dtest_514_text.py9 TextLine, plain_text, caret_decode,
161 assert plain_text('%%C') == 'Ø' # alt-0216
162 assert plain_text('%%D') == '°' # alt-0176
165 assert plain_text('%%u') == ''
166 assert plain_text('%%utext%%u') == 'text'
168 assert plain_text('%%o') == ''
170 assert plain_text('%%k') == ''
173 assert plain_text('%u%d%') == '%u%d%'
175 assert t.plain_text() == '45°'
177 assert plain_text('abc^a') == 'abc!'
[all …]
/dports/sysutils/fwup/fwup-1.9.0/src/3rdparty/monocypher-3.1.2/tests/
H A Dctgrind.c96 u8 plain_text [128]; in lock_aead() local
97 crypto_lock_aead(mac, cipher_text, key, nonce, ad, i, plain_text, i); in lock_aead()
104 u8 plain_text [128]; in unlock_aead() local
110 crypto_unlock_aead(plain_text, key, nonce, mac, ad, i, cipher_text, i); in unlock_aead()
219 u8 plain_text [128]; in chacha20() local
222 crypto_chacha20(cipher_text, plain_text, i, key, nonce); in chacha20()
229 u8 plain_text [128]; in xchacha20() local
232 crypto_xchacha20(cipher_text, plain_text, i, key, nonce); in xchacha20()
239 u8 plain_text [128]; in ietf_chacha20() local
242 crypto_ietf_chacha20(cipher_text, plain_text, i, key, nonce); in ietf_chacha20()
/dports/textproc/colordiff/colordiff-1.0.19/
H A Dcolordiff.pl58 my $plain_text = $colour{white};
259 $plain_text = $colourval;
299 $plain_text = '';
305 $plain_text = '';
462 print "Binary files $file_old$1$plain_text and $file_new$2$plain_text differ\n";
482 print "$plain_text";
524 print "$plain_text";
547 print "$plain_text";
566 print "$plain_text";
573 print "$plain_text";
/dports/databases/p5-DBIx-Class-EncodedColumn/DBIx-Class-EncodedColumn-0.00020/lib/DBIx/Class/EncodedColumn/Crypt/Eksblowfish/
H A DBcrypt.pm27 my ($plain_text, $settings_str) = @_;
28 if ( is_utf8($plain_text) ) {
30 $plain_text = encode_utf8($plain_text);
37 return Crypt::Eksblowfish::Bcrypt::bcrypt($plain_text, $settings_str);

12345678910>>...21