diff --git a/src/lib/ffi/ffi.h b/src/lib/ffi/ffi.h index 022f9efc22..f2f7fbea40 100644 --- a/src/lib/ffi/ffi.h +++ b/src/lib/ffi/ffi.h @@ -1528,9 +1528,11 @@ BOTAN_FFI_EXPORT(3, 1) int botan_privkey_load_kyber(botan_privkey_t* key, const BOTAN_FFI_EXPORT(3, 1) int botan_pubkey_load_kyber(botan_pubkey_t* key, const uint8_t pubkey[], size_t key_len); +BOTAN_FFI_DEPRECATED("Use generic botan_privkey_view_raw") BOTAN_FFI_EXPORT(3, 1) int botan_privkey_view_kyber_raw_key(botan_privkey_t key, botan_view_ctx ctx, botan_view_bin_fn view); +BOTAN_FFI_DEPRECATED("Use generic botan_pubkey_view_raw") BOTAN_FFI_EXPORT(3, 1) int botan_pubkey_view_kyber_raw_key(botan_pubkey_t key, botan_view_ctx ctx, botan_view_bin_fn view); diff --git a/src/python/botan3.py b/src/python/botan3.py index aecb5f21a3..ce07c7b890 100755 --- a/src/python/botan3.py +++ b/src/python/botan3.py @@ -1283,6 +1283,7 @@ def to_raw(self): return _call_fn_viewing_vec(lambda vc, vfn: _DLL.botan_pubkey_view_raw(self.__obj, vc, vfn)) def view_kyber_raw_key(self): + """Deprecated: use to_raw() instead""" return _call_fn_viewing_vec(lambda vc, vfn: _DLL.botan_pubkey_view_kyber_raw_key(self.__obj, vc, vfn)) def fingerprint(self, hash_algorithm='SHA-256'): @@ -1447,6 +1448,7 @@ def to_raw(self): return _call_fn_viewing_vec(lambda vc, vfn: _DLL.botan_privkey_view_raw(self.__obj, vc, vfn)) def view_kyber_raw_key(self): + """Deprecated: use to_raw() instead""" return _call_fn_viewing_vec(lambda vc, vfn: _DLL.botan_privkey_view_kyber_raw_key(self.__obj, vc, vfn)) def export(self, pem=False):